List Variations of an Item by slug

get

/content/management/api/v1.1/items/.by.slug/{slug}/variations

Lists all Variations of a given Item by slug.

Request

Path Parameters
  • Slug value of the latest management Item. Any special characters in slug must be encoded.
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ItemSubResourceListVariationsInfo
Type: object
Item SubResource.
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : VariationsInfo
Type: object
Variations Info.
Show Source
Nested Schema : items
Type: array
Content item variations.
Show Source
Nested Schema : Language
Type: object
LanguageItem
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to list variations of an item by its slug value.

curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/items/.by.slug/{slug}/variations'

Example 1:

This lists variations of an item with slug:'.by.slug/content-item-1-type-1'.

/content/management/api/v1.1/items/.by.slug/content-item-1-type-1/variations

Response Body

{
        "data": [
          {
            "varType": "language",
            "masterItem": "CORE03686186463D44D286FE9A7004AA36C6",
            "items": [
              {
                "id": "CORE03686186463D44D286FE9A7004AA36C6",
                "value": "en-US",
                "status": "draft",
                "isPublished": true
              },
              {
                "id": "CORECD67178407B04607A20A92CEBD637695",
                "value": "fr-FR",
                "status": "draft",
                "isPublished": true
              },
              {
                "id": "CORE6D2AA74D80D44135BB8553695B13A93C",
                "value": "ar",
                "status": "draft",
                "isPublished": true
              }
            ]
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/items/.by.slug/content-item-1-type-1/variations",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
      }

Example 2:

This lists variations of an item with slug:'.by.slug/digital-asset-1-cdt-1'.

/content/management/api/v1.1/items/.by.slug/digital-asset-1-cdt-1/variations

Response Body

{
        "data": [
          {
            "varType": "language",
            "masterItem": "CONT03686186463D44D286FE9A7004AA36C6",
            "items": [
              {
                "id": "CONT03686186463D44D286FE9A7004AA36C6",
                "value": "en-US",
                "status": "draft",
                "isPublished": true
              },
              {
                "id": "CONTCD67178407B04607A20A92CEBD637695",
                "value": "fr-FR",
                "status": "draft",
                "isPublished": true
              },
              {
                "id": "CONT6D2AA74D80D44135BB8553695B13A93C",
                "value": "ar",
                "status": "draft",
                "isPublished": true
              }
            ]
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/items/.by.slug/digital-asset-1-cdt-1/variations",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
      }
    }
Back to Top