younifyd
Menu

Get Content Type

Get Content Type

GET/content-types/{contentTypeId}

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Get Content Type action (under Content Types).
  3. Fill in the fields below, then reference the result from later steps as {{getContentType.response.data}}.

Request

Path parameters

contentTypeIdstringrequired

Content Type ID

Response

Returns 200 with an object. Read it in later steps with {{getContentType.response.data.<field>}}.

idstring

ID

contentTypeUristring

Content Type URI

statusstring

Status

One ofACTIVEARCHIVED

settingsobject
labelstring

Label

iconsarray<object>2 fields

Icons

visualizationsarray<object>3 fields

Visualizations

_linksobject

Resource HAL links

selfany
archiveany
unarchiveany
content-typeany
effective-content-typeany
content-type-schemaany
json
{
  "id": "00112233445566778899aabb",
  "contentTypeUri": "http://example.com/content-type.json",
  "status": "ACTIVE",
  "settings": {
    "label": "New Content Type",
    "icons": [
      {
        "size": 256,
        "url": "http://example.com/icon.png"
      }
    ],
    "visualizations": [
      {
        "label": "Desktop Website",
        "templatedUri": "http://example.com?vse={{vse}}",
        "default": true
      }
    ]
  },
  "_links": {
    "self": null,
    "archive": null,
    "unarchive": null,
    "content-type": null,
    "effective-content-type": null,
    "content-type-schema": null
  }
}

Need more? See the Amplience guide for connection setup and behaviour shared by every action.