v1
latestOpenAPI 3.0.02026-07-2417611.8 MBAuthoring types
Update an existing type.
Use the /types/{id} end-point to update an existing content type within the database.<br />User roles: admin, manager
put/authoring/v1/types/{id}
Path parameters
idstring required
Provide the ID of the content type document that you want to update.
Query parameters
forceOverrideboolean
Specifies whether revision checking should be disabled.
optionsstring
Specify additional update directives. Valid directives are:
- rebuild-path-filename: Instructs the service to re-generate the last fragment of the specified document path, by converting the specified document name into a filesystem friendly filename.
Request body
Example request
{
"path": "/myTypes/SampleType.json",
"thumbnail": {
"id": "6c622bbb-5f5b-45d4-89e1-fce1c054138f",
"path": "/sales/images/hub.png",
"url": "/authoring/v1/resources/47d535ff288b3bd8383009abf82a9ea8"
}
}Response
Successfully updated the content type document that matches the ID provided with the changes made to the type fields.
Example response
{
"path": "/myTypes/SampleType.json",
"thumbnail": {
"id": "6c622bbb-5f5b-45d4-89e1-fce1c054138f",
"path": "/sales/images/hub.png",
"url": "/authoring/v1/resources/47d535ff288b3bd8383009abf82a9ea8"
}
}