GET Groups

Overview

The Group List endpoint provides an entry point to all of the data available via the API. Other endpoints require one or more object identifiers (e.g. a group UUID), but this one does not have any prerequisites. The Group List response includes all groups accessible by the given API credentials.

Base path

/api/v1/groups

Query parameters

limit

See Paging parameters

offset

See Paging parameters

sortBy

See Paging parameters
Available values: NAME
Default: NAME

sortDirection

See Paging parameters

Curl example

curl -X GET \
'https://API_HOSTNAME/api/v1/groups?offset=10&limit=10' \
--header 'Authorization: Bearer BEARER_TOKEN'

Response

The response is a list of groups, with additional fields that contain paging metadata and links to the previous and next pages, if they exist.

Response body

{
    "totalCount": 38,
    "limit": 10,
    "offset": 10,
    "results":[
        {
            "href": "/api/v1/groups/PARENT_GROUP_UUID",
            "uuid": "PARENT_GROUP_UUID",
            "name": "Parent Group Name"
        },
        {
            "href": "/api/v1/groups/GROUP_UUID",
            "uuid": "GROUP_UUID",
            "name": "Child Group One",
            "parent": {
                "href": "/api/v1/groups/PARENT_GROUP_UUID",
                "title": "Parent Group Name"
            }
        },
        …
    ],
    "nextPage": "https://API_HOSTNAME/api/v1/groups?offset=20&limit=10",
    "previousPage": "https://API_HOSTNAME/api/v1/groups?offset=0&limit=10"
}

Result attributes

href

(string) A URL fragment that can be used to retrieve details about the specific group.

uuid

(string) A unique identifier for the group.

name

(string) The name of the group.

parent

(link) A reference to the parent of the group, if one exists.