v1
latestOpenAPI 3.0.02026-07-2417611.8 MBAuthoring types
Copies an existing type.
Use the /types/{id}/copy end-point to create a duplicate of a content type document. The new type will have a name in the format 'Copy [NUMBER] of [SOURCE-NAME]'<br />User roles: admin, manager
post/authoring/v1/types/{id}/copy
Path parameters
idstring required
Provide the ID of the content type document that you wish to copy.
Query parameters
namestring
An optional name to associate with the copy. If there is an existing content-type with the specified name, then the copied document will have a name in the format 'Copy [NUMBER] of [NAME]'
cascadestring
Lists the associated artifacts that should be copied at the same time. Valid options are:
- mappings: Also copies layout-mapping associated with the original content type.
- defaults: Also copies default-content associated with the original content type.
- all : Copies mappings as well as defaults.
Response
Successfully copied the content type document.
Example response
{
"path": "/myTypes/SampleType.json",
"thumbnail": {
"id": "6c622bbb-5f5b-45d4-89e1-fce1c054138f",
"path": "/sales/images/hub.png",
"url": "/authoring/v1/resources/47d535ff288b3bd8383009abf82a9ea8"
}
}