Update custom layout by given ID
Changed onUpdate custom layout by the given <strong>{customLayoutId}</strong> and parameters. <br> The <strong>{customLayoutId}</strong> must be an ID of an existing custom layout. <br> Please note that <strong>all fields<strong> have to be provided.
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /pimcore-studio/api/class/custom-layout/{customLayoutId}
- Auth: none declared
Path parameters
Id of custom layout
Request body
Response
Custom layout updated
Example response
{
"id": "custom_layout_1",
"name": "Custom Layout 1",
"description": "This is a custom layout",
"creationDate": 1633036800,
"modificationDate": 1633036800,
"userOwner": 1,
"classId": "Product",
"layoutDefinition": {
"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
the response property
became nullable for the status - breaking
removed the required property
//from the response with the status - breaking
removed the required property
//from the response with the status - info
api operation id
pimcore_studio_api_class_custom_layout_updateremoved and replaced withclass_custom_layout_update - 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