younifyd
Menu

Update Content Type

Update Content Type

PATCH/content-types/{contentTypeId}

Use it in a workflow

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

Request

Path parameters

contentTypeIdstringrequired

Content Type ID

Request body

Enter the body as JSON in the step's Body 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
  }
}

Response

Returns 200 with an object. Read it in later steps with {{updateContentType.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.