Get Item Variations by Variation Type

get

/content/published/api/v1.1/items/{id}/variations/{varType}

Gets Item Variations of Variation Type for the Item.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Successful operation.
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

400 Response

Bad Request. The server is unable to process the request on the client side due to malformed syntax, invalid data or message framing.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to read variations of variations type for the content item.

curl -i -X GET -H "Accept:application/json" 'http://<hostname>/content/published/api/v1.1/items/{id}/variations/{varType}'
Example 1

This reads variations of variations type for the content item: COREAF9E55FE83E84885A10DDA42B5160A5F, channelToken: 7ffdaa85baae4fbca4b300144f93918c.

/content/published/api/v1.1/items/COREAF9E55FE83E84885A10DDA42B5160A5F/variations/language?channelToken=7ffdaa85baae4fbca4b300144f93918c

Response Body

 {
        "setId": "A9D44312B476147CE05321997B0AAC46",
        "masterItem": "COREAF9E55FE83E84885A10DDA42B5160A5F",
        "items": [
          {
            "id": "CORE4FD93D7B9DF2468DA6C122764D0AA85E",
            "value": "fr",
            "links": [
              {
                "href": "https://<hostname>/content/published/api/v1.1/items/CORE4FD93D7B9DF2468DA6C122764D0AA85E?channelToken=7ffdaa85baae4fbca4b300144f93918c",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          },
          {
            "id": "COREAF9E55FE83E84885A10DDA42B5160A5F",
            "value": "en-US",
            "links": [
              {
                "href": "https://<hostname>/content/published/api/v1.1/items/COREAF9E55FE83E84885A10DDA42B5160A5F?channelToken=7ffdaa85baae4fbca4b300144f93918c",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/COREAF9E55FE83E84885A10DDA42B5160A5F/variations/language?channelToken=7ffdaa85baae4fbca4b300144f93918c",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/COREAF9E55FE83E84885A10DDA42B5160A5F/variations/language?channelToken=7ffdaa85baae4fbca4b300144f93918c",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/metadata-catalog/items/COREAF9E55FE83E84885A10DDA42B5160A5F/variations/language?channelToken=7ffdaa85baae4fbca4b300144f93918c",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
Example 2

This reads variations of type language for published digital item with id: CONTAF9E55FE83E84885A10DDA42B5160A5F, channelToken:7ffdaa85baae4fbca4b300144f93918c.

/content/published/api/v1.1/items/CONTAF9E55FE83E84885A10DDA42B5160A5F/variations/language?channelToken=7ffdaa85baae4fbca4b300144f93918c

Response Body

{
        "setId": "A9D44312B476147CE05321997B0AAC46",
        "masterItem": "CONTAF9E55FE83E84885A10DDA42B5160A5F",
        "items": [
          {
            "id": "CONT4FD93D7B9DF2468DA6C122764D0AA85E",
            "value": "fr",
            "links": [
              {
                "href": "https://<hostname>/content/published/api/v1.1/items/CONT4FD93D7B9DF2468DA6C122764D0AA85E?channelToken=7ffdaa85baae4fbca4b300144f93918c",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          },
          {
            "id": "CONTAF9E55FE83E84885A10DDA42B5160A5F",
            "value": "en-US",
            "links": [
              {
                "href": "https://<hostname>/content/published/api/v1.1/items/CONTAF9E55FE83E84885A10DDA42B5160A5F?channelToken=7ffdaa85baae4fbca4b300144f93918c",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/CONTAF9E55FE83E84885A10DDA42B5160A5F/variations/language?channelToken=7ffdaa85baae4fbca4b300144f93918c",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/CONTAF9E55FE83E84885A10DDA42B5160A5F/variations/language?channelToken=7ffdaa85baae4fbca4b300144f93918c",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/metadata-catalog/items/CONTAF9E55FE83E84885A10DDA42B5160A5F/variations/language?channelToken=7ffdaa85baae4fbca4b300144f93918c",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
    }
Back to Top