v1
latestOpenAPI 3.0.02026-07-2417611.8 MBRetrieve an existing layout.
Use the /layouts/{id} end-point to retrieve an existing layout from the database.<br />User roles: admin, manager, editor, viewer
Path parameters
The ID of the layout to retrieve.
Query parameters
A comma separated list that when specified, limits the fields returned to just those specified. Any layout field is a valid value.
A comma separated list of additional fields (which are normally hidden) to add to the response. Valid options are: * metadata: Adds additional details such as creator and last modifier to the response. * all: Adds all current and future additional fields to the response. When used in-conjunction with the 'fields' option, both sets of fields are returned. ie. those specified in the 'fields' option and those specified in the 'include' option.
Headers
Provide an Etag value from a previous request to check whether the layout retrieved is the most recent version. If the layout is the most recent version, the call returns a 304 ( Not modified) message instead of sending the layout back.
Response
Success.
Example response
{
"id": "f26044ca-d92d-49e8-acd9-00563c1e0db9",
"rev": "139c63397272172e73f52d22f22f606f6c",
"name": "Sample layout",
"description": "An example description of the sample layout",
"creatorId": "8c622bbb-5f5b-45d4-89e1-fce1c054138f",
"creator": "Thomas Watson",
"lastModifierId": "8c622bbb-5f5b-45d4-89e1-fce1c054138f",
"lastModifier": "Thomas Watson",
"path": "/myLayouts/SampleLayout.json",
"tags": [
"news",
"sample"
],
"thumbnail": {
"id": "6c622bbb-5f5b-45d4-89e1-fce1c054138f",
"path": "/sales/images/hub.png",
"url": "/authoring/v1/resources/d45c83a8-2738-48a2-89e1-35256ee16283.jpg"
},
"template": "/mytemplates/template.hbs",
"templateType": "handlebars"
}