Ask
Type to search
Endpoints

Content Groups

Content groups help you manage your content by grouping content pieces and nesting different groups inside each other. The API gives you full control over them.

Retrieve Content Group

Retrieves details of a single content group, by specified ID.

GET
/content-groups
Query Parameters
idstring
Required

ID of the content group

subtreeboolean

Whether to list the entire subtree of the group

Response object
Request
Response
{
  "id": "d9b18d9c09e366bbe649215e",
  "name": "string",
  "ancestors": [
    "0953ab1168879e1e6f001bde"
  ],
  "descendants": [
    "4744416c628dce71abc72087"
  ]
}

List Content Groups

By default, lists all top-level content groups. When an ancestor ID is specified, lists all content groups that are its direct descendants.

GET
/content-groups/list
Query Parameters
ancestorstring

ID of the content group to list descendants for

subtreeboolean

Whether to list the entire subtree of the group

Response object[]
Request
Response
[
  {
    "id": "73307c760d5998414947f942",
    "name": "string",
    "ancestors": [
      "8bf9f4bf93f700e1a6863d9f"
    ],
    "descendants": [
      "ef690a99e9cc09eed46a2419"
    ]
  }
]

Create Content Group

Creates a content group with the specified name, either top-level or nested inside the ancestor specified by ID.

POST
/content-groups
Body Parameters
namestring
Required

Name of the content group

ancestorstring

ID of the content group to be the direct ancestor

Response object
idstring

ID of the content group

Request
Response
{
  "id": "c3d507504db761ab7bcbf25a"
}

Update Content Group

Updates the content group specified by ID. If an ancestor is specified by an ID, the content group will be moved to be nested inside it.

PUT
/content-groups
Body Parameters
idstring
Required

ID of the content group

namestring

Name of the content group

ancestorstring

ID of the new ancestor for the content group

Response 200
Request

Delete Content Group

Deletes the content group specified by ID, together with all the content groups and content pieces inside it down to the lowest level.

DELETE
/content-groups
Query Parameters
idstring
Required

ID of the content group

Response 200
Request