Read Item Variations by Variation Type

get

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

Read item variations of a variation type for given item id.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ItemVariationId
Type: object
Item Variation Id.
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 master variation for a variation type 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/{variationType}/master'

Example:

This reads master item variations of a variation type of item id: CORE6D2AA74D80D44135BB8553695B13A93C.

/content/management/api/v1.1/items/CORE6D2AA74D80D44135BB8553695B13A93C/variations/master

Response Body

 {
    "id": "CORE03686186463D44D286FE9A7004AA36C6",
    "value": "en-US",
    "isMaster": true,
    "links": [
    {
      "href": "https://host:port/content/management/api/v1.1/items/CORE6D2AA74D80D44135BB8553695B13A93C/variations/language/master",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/items/CORE6D2AA74D80D44135BB8553695B13A93C/variations/language/master",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/metadata-catalog/items/CORE6D2AA74D80D44135BB8553695B13A93C/variations/language/master",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/items/CORE03686186463D44D286FE9A7004AA36C6",
      "rel": "alternate",
      "method": "GET",
      "mediaType": "application/json"
    }
    ]
    }
    
Back to Top