displayGroupId question

hello,

i have installed xibo 1.8 rc1 and created 2 Display groups and put one player inside group.

Every player that i add is default inside it own group and when i use api for display i get displayGroupId which is same as id of player.

Should it be as group that i assigined it ?

ahm that does not seem right.

Every display has a it’s own unique displayGroupId (hidden) and displayId, both you can get by calling GET display.
Then every actual displayGroup has a displayGroupId which you can get by calling GET displaygroup

the displayId on Displays page and displayGroupId on Display Groups page are also visible in web ui the displayGroupId of a individual display is not.

Hello, i know that you mean but it seems that every player by default is on own group (i have checked that via phpmyadmin) then i have add my player to the group and tryed via API get display but i cant find this

"displayGroups": [
      {
        "displayGroupId": 0,
        "displayGroup": "string",
        "description": "string",
        "isDisplaySpecific": 0,
        "isDynamic": 0,
        "dynamicCriteria": 0,
        "userId": 0
      }
    ],

which is on your example for get display.

Am i missing something ?

Ah right,

so the usual call is {{url}}/api/display
you can add ?display=DISPLAYNAME to the call to filter by display name (if you’d have more displays, it’s rather useful).

The thing that you want to add though is
?embed=displaygroups

so the full call for you
{{url}}/api/display?embed=displaygroups

That will show you the “displayGroups” you mentioned in your post, there should be both the display own individual hidden display group as well as any display groups to which this display is assigned to.

example response:

 "displayGroups": [
      {
        "displayGroupId": 66,
        "displayGroup": "Peter z64",
        "description": null,
        "isDisplaySpecific": 1,
        "isDynamic": 0,
        "dynamicCriteria": null,
        "userId": 0
      },
      {
        "displayGroupId": 61,
        "displayGroup": "Peter Display Group",
        "description": null,
        "isDisplaySpecific": 0,
        "isDynamic": 0,
        "dynamicCriteria": null,
        "userId": 8
      }
    ],