Preview item variations by variation type

get

/content/preview/api/v1.1/items/{id}/variations/{variationType}

Preview of all item variations filtered by variation type.

Request

Path Parameters
Query Parameters
  • Channel token of the targeted channel. A channel token must be provided as either a query parameter or a request header.
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. Client is not authorized to perform this request.

404 Response

The requested resource was not found.

500 Response

Internal server error. An unexpected error condition encountered in the system.
Back to Top

Examples

Example 1:

The following example shows how to preview variations of type language of item with id by submission of a GET request on the REST resource using cURL:

curl -X GET -H 'Accept: application/json' 'https://host:port/content/preview/api/v1.1/items/CORE96C8FDF1883C44AB908FC56FF618D225/variations/language?channelToken=37727fdc857c4d479513325888b69df0'

This reads preview of variations of type language for item with id: CORE96C8FDF1883C44AB908FC56FF618D225, channelToken: 37727fdc857c4d479513325888b69df0.

Response Body

{
        "setId": "CC15EF24B63273FBE053020012AC2DFE",
        "masterItem": "CORE96C8FDF1883C44AB908FC56FF618D225",
        "items": [
          {
            "id": "CORE2824D7CF303F4C80BD765983B2BFDB33",
            "value": "es",
            "links": [
              {
                "href": "https://<hostname>/content/preview/api/v1.1/items/CORE2824D7CF303F4C80BD765983B2BFDB33?channelToken=37727fdc857c4d479513325888b69df0",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          },
          {
            "id": "CORE96C8FDF1883C44AB908FC56FF618D225",
            "value": "en-US",
            "links": [
              {
                "href": "https://<hostname>/content/preview/api/v1.1/items/CORE96C8FDF1883C44AB908FC56FF618D225?channelToken=37727fdc857c4d479513325888b69df0",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/preview/api/v1.1/items/CORE96C8FDF1883C44AB908FC56FF618D225/variations/language?channelToken=37727fdc857c4d479513325888b69df0",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/preview/api/v1.1/items/CORE96C8FDF1883C44AB908FC56FF618D225/variations/language?channelToken=37727fdc857c4d479513325888b69df0",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/preview/api/v1.1/metadata-catalog/items/CORE96C8FDF1883C44AB908FC56FF618D225/variations/language?channelToken=37727fdc857c4d479513325888b69df0",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }

Example 2:

curl -X GET -H 'Accept: application/json' 'https://host:port/content/preview/api/v1.1/items/CONTE626E01775F9477999908D3B1DD1BBDD/variations/language?channelToken=37727fdc857c4d479513325888b69df0'

This reads preview of variations of type language for item with id: CONTE626E01775F9477999908D3B1DD1BBDD, channelToken: 37727fdc857c4d479513325888b69df0.

Response Body

{
        "setId": "D0867DFED149225FE053020013ACC472",
        "masterItem": "CONTE626E01775F9477999908D3B1DD1BBDD",
        "items": [
          {
            "id": "CONT7EB51110AF9A480DA200ABAD183B3B2B",
            "value": "es",
            "links": [
              {
                "href": "https://<hostname>/content/preview/api/v1.1/items/CONT7EB51110AF9A480DA200ABAD183B3B2B?channelToken=37727fdc857c4d479513325888b69df0",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          },
          {
            "id": "CONTE626E01775F9477999908D3B1DD1BBDD",
            "value": "en-US",
            "links": [
              {
                "href": "https://<hostname>/content/preview/api/v1.1/items/CONTE626E01775F9477999908D3B1DD1BBDD?channelToken=37727fdc857c4d479513325888b69df0",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          }
        ],
        "links": [
          {
            "href": "https://<hostname>/content/preview/api/v1.1/items/CONTE626E01775F9477999908D3B1DD1BBDD/variations/language?channelToken=37727fdc857c4d479513325888b69df0",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/preview/api/v1.1/items/CONTE626E01775F9477999908D3B1DD1BBDD/variations/language?channelToken=37727fdc857c4d479513325888b69df0",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/preview/api/v1.1/metadata-catalog/items/CONTE626E01775F9477999908D3B1DD1BBDD/variations/language?channelToken=37727fdc857c4d479513325888b69df0",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
    }
Back to Top