Retrieves information about one or more site groups.
The user must be authenticated and have read permissions to the given site group.
Request
The request object has the following fields:
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
No |
The identifier of the site group to retrieve. Can not be combined with |
|
|
Array of String |
No |
An array of identifiers for site groups to retrieve. Can not be combined with |
|
|
String |
No |
A composerApplicationId assigned to the customer |
|
|
String |
No |
A prefix associated with the customer |
If no parameters are specified, all site groups the user has read permissions to are retrieved.
Response
The response object has the following fields:
|
Name |
Type |
Description |
|---|---|---|
|
|
Array of Object |
Array of site group objects. |
A site group object has the following fields:
|
Name |
Type |
Description |
|---|---|---|
|
|
String |
Site group identifier. |
|
|
String |
Site group name. (max 32 characters) |
|
|
String |
Site group description. |
|
|
Array of String |
Array of site identifiers that are directly linked to this site group. |
|
|
Array of Object |
Array of permission objects specifying the users that have access to the site group and their permission. Note: This will only contain the current user except for customer admin. |
|
|
List of Strings |
List of parent site groups for which the user has read permissions. |
|
|
String |
The Piano application identifier (aid), given that the site group is connected to an application in the Piano product suite. This field is only visible to customer admin. Updates can only be made be a Piano admin |
|
|
Integer |
Minimum audience size. Segments with an audience less than that minAudienceSize during durationForMinAudienceSize will be deleted automatically. |
|
|
Integer |
Duration for minAudienceSize. Segments with an audience less than that minAudienceSize during durationForMinAudienceSize will be deleted automatically. |
|
|
Boolean |
Enables segment auto deletion by |
|
|
Boolean |
Activating this option leads to updating and/or deleting related segments in case of automatic deletion of the main segments of the site group. Only available for customer admin ( |
|
|
String |
The creation time. Only available for customer admin ( |
|
|
String |
User name of person who created user. Only available for customer admin ( |
|
|
String |
The last changing time. Only available for customer admin ( |
|
|
String |
User name of last person who modified user. Only available for customer admin ( |
A permission object has the following fields:
|
Name |
Type |
Description |
|---|---|---|
|
|
String |
User identifier for the user with permission to the site group. |
|
|
Boolean |
True if the user has read permission to the site group. |
|
write |
Boolean |
True if the user has write permission to the site group. |
Examples
$ python cx.py /site/group '{"siteGroupId":"9222300742653756873"}'
{
"siteGroups": [
{
"id": "9222300742653756873",
"name": "Example",
"description": "Example site group",
"siteIds": [
"9222300742735526873"
],
"permissions": [
{
"username": "example@cxense.com",
"read": true,
"write": true
}
]
}
]
}