Ask
Type to search
Endpoints

Variants

Variants help you manage things like internalization or A/B testing, i.e. when there are multiple versions of basically the same content piece involved.

List Variants

Lists the details of all registered variants.

GET
/variants/list
Response object[]
idstring

ID of the variant

labelstring

Label assigned to the variant

descriptionstring

Description of the variant

keystring

Short, unique key for the variant (for use with the API)

Request
Response
[
  {
    "id": "739628be6176d13031e46ca6",
    "label": "string",
    "description": "string",
    "key": "string"
  }
]

Create Variant

Creates a new variant with a specified label, key, and optional description.

POST
/variants
Body Parameters
labelstring
Required

Label assigned to the variant

descriptionstring

Description of the variant

keystring
Required

Short, unique key for the variant (for use with the API)

Response object
idstring

ID of the variant

Request
Response
{
  "id": "911517baba7e3e30320c231b"
}

Update Variant

Updates the label, key, and description of the variant matched by ID, using the specified data.

PUT
/variants
Body Parameters
idstring
Required

ID of the variant

labelstring

Label assigned to the variant

descriptionstring

Description of the variant

keystring

Short, unique key for the variant (for use with the API)

Response 200
Request

Delete Variant

Deletes the variant specified by ID, removing all associated content pieces variants.

DELETE
/variants
Query Parameters
idstring
Required

ID of the variant

Response 200
Request