Menu
Update Content Type
Update Content Type
PATCH
/content-types/{contentTypeId}Use it in a workflow
- Add a step and choose the Amplience connector.
- Pick the Update Content Type action (under Content Types).
- Fill in the fields below, then reference the result from later steps as
{{updateContentType.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"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>}}.
{
"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.
Was this page helpful?