List Variations of an Item

get

/content/management/api/v1.1/items/{id}/variations

Lists all variations of a given item.

Request

Path Parameters
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 get item using an ID by submission of a GET request using cURL.

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

Example:

This lists variations of item id: CORECD67178407B04607A20A92CEBD637695.

/content/management/api/v1.1/items/CORECD67178407B04607A20A92CEBD637695/variations

Response Body

{
    "data": [
    {
      "varType": "language",
      "masterItem": "CORE03686186463D44D286FE9A7004AA36C6",
      "items": [
        {
      "id": "CORE03686186463D44D286FE9A7004AA36C6",
      "value": "en-US"
      },
        {
      "id": "CORECD67178407B04607A20A92CEBD637695",
      "value": "en-AU"
      },
        {
      "id": "CORE6D2AA74D80D44135BB8553695B13A93C",
      "value": "en-US"
      }
      ]
    }
    ],
    "links": [
    {
      "href": "https://host:port/content/management/api/v1.1/items/CORECD67178407B04607A20A92CEBD637695/variations",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    }
    ]
    }
Back to Top