v1
latestOpenAPI 3.0.02026-07-2417611.8 MBAuthoring layouts
Copies an existing layout mapping.
Use the /layout-mappings/{id}/copy end-point to create a duplicate of a layout mapping. The new layout mapping will have a name in the format 'Copy [NUMBER] of [SOURCE-NAME]'<br />User roles: admin, manager
post/authoring/v1/layout-mappings/{id}/copy
Path parameters
idstring required
Provide the ID of the layout mapping that you wish to copy.
Query parameters
typeIdstring required
The ID of the content-type to associate with the copy.
namestring
An optional name to associate with the copy. If there is an existing layout mapping with the specified name, then the copied document will have a name in the format 'Copy [NUMBER] of [NAME]'
Response
There was an existing layout mapping found for the specified content-type.
Example response
{
"id": "e0192c4c-9633-4853-856a-ce04e37ec40c",
"rev": "1d5fc65f4cd277eb5340355db7ecdfde75",
"name": "Sample layout mapping",
"creatorId": "8c622bbb-5f5b-45d4-89e1-fce1c054138f",
"creator": "Thomas Watson",
"created": "2016-11-02T06:28:47Z",
"lastModifierId": "8c622bbb-5f5b-45d4-89e1-fce1c054138f",
"lastModifier": "Thomas Watson",
"lastModified": "2016-11-02T06:28:47Z",
"path": "/myLayoutMappings/SampleMapping.json",
"tags": [
"news",
"sample"
],
"type": {
"id": "092c46f6-09c0-4ffe-9f21-52d041b4a73c",
"name": "Sample Type"
},
"mappings": [
{
"defaultLayout": {
"id": "f26044ca-d92d-49e8-acd9-00563c1e0db9",
"name": "Sample Layout"
},
"layouts": [
{
"id": "f26044ca-d92d-49e8-acd9-00563c1e0db9",
"name": "Sample Layout"
}
]
}
]
}