List all Item Variations of a Variation Type by slug

get

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

Lists all item variations of a variation type by slug.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root 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 all item variations of a variation type by item slug.

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

Example 1:

This lists all item variations of a variation type for an item with slug 'content-item-1-type-1'.

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

Response Body

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

Example 2:

This lists all item variations of a variation type for an item with slug 'digital-asset-1-cdt-1'.

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

Response Body

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