Data Objects
Get layout of a data object by ID
Changed onRetrieves the layout of a specific data object based on the given <strong>{id}</strong>. <br> The <strong>{id}</strong> must be an ID of existing data object.
get/pimcore-studio/api/data-objects/{id}/layout
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /pimcore-studio/api/data-objects/{id}/layout
- Auth: none declared
Path parameters
idinteger required
Example:83
Id of the data-object
Query parameters
layoutIdstring
Example:Todo
ID to get specific layout
Response
Successfully retrieved data object layout data as JSON
Example response
{
"name": "pimcore_root",
"datatype": "layout",
"fieldtype": "panel",
"region": "center",
"title": "MyLayout",
"bodyStyle": "(float: left;)",
"icon": {
"type": "path",
"value": "/path/to/icon"
},
"labelAlign": "left",
"labelWidth": 100,
"previewConfig": [
{
"name": "locale",
"label": "Locale",
"values": [
{
"key": "English (en)",
"value": "en"
}
],
"defaultValue": "en"
}
]
}Changes
- breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking