Read master of an Item Variation set by slug

get

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

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 item of a variation type of an item by its slug value.

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

Example 1:

This reads master item 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/master

Response Body

{
        "id": "CORE03686186463D44D286FE9A7004AA36C6",
        "value": "en-US",
        "isMaster": true,
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/items/.by.slug/content-item-1-type-1/variations/language/master",
            "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/master",
            "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/master",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/items/.by.slug/content-item-1-type-1",
            "rel": "alternate",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
      }

Example 2:

This reads master item of a variation type for an item with slug:'content-item-1-type-1' .

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

Response Body

 {
        "id": "CONT03686186463D44D286FE9A7004AA36C6",
        "value": "en-US",
        "isMaster": true,
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/items/.by.slug/digital-asset-1-cdt-1/variations/language/master",
            "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/master",
            "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/master",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/items/.by.slug/digital-asset-1-cdt-1",
            "rel": "alternate",
            "method": "GET",
            "mediaType": "application/json"
          }
        ]
      }
    }
Back to Top