Class Definition
Update field collection definition by given key
Changed onUpdate an existing field collection definition with the given <strong>{key}</strong> and parameters. <br> The <strong>{key}</strong> must be the key of an existing field collection definition. <br> The <strong>{values}</strong> and <strong>{configuration}</strong> fields are required.
put/pimcore-studio/api/class/field-collection/{key}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /pimcore-studio/api/class/field-collection/{key}
- Auth: none declared
Path parameters
keystring required
Example:MyFieldCollection
Field collection unique key
Request body
Example request
{
"configuration": {
"children": [
{
"name": "Layout",
"datatype": "layout",
"fieldtype": "panel",
"type": null,
"region": "",
"title": "Pattern",
"width": "",
"height": "",
"collapsible": false,
"collapsed": false,
"bodyStyle": "",
"locked": false,
"layout": "",
"border": false,
"icon": null,
"labelWidth": 100,
"labelAlign": "left",
"invalidFieldError": null,
"children": [
{
"name": "count",
"datatype": "data",
"fieldtype": "numeric",
"title": "Token Count",
"tooltip": "",
"mandatory": false,
"noteditable": false,
"index": false,
"locked": false,
"style": "",
"permissions": null,
"relationType": false,
"invisible": false,
"visibleGridView": false,
"visibleSearch": false,
"defaultValue": null,
"integer": true,
"unsigned": true,
"minValue": 1,
"maxValue": null,
"unique": false,
"decimalSize": null,
"decimalPrecision": null,
"width": 400,
"defaultValueGenerator": "",
"invalidFieldError": null,
"children": null
}
]
}
]
},
"values": {
"parentClass": "\\App\\Bundle\\Model\\MyCustomParentType",
"implementsInterfaces": "",
"title": "",
"group": "Voucher",
"blockedVarsForExport": []
}
}Response
Successfully updated field collection definition
Example response
{
"key": "MyFieldCollection",
"title": "My Field Collection",
"group": "system",
"parentClass": "App\\Model\\DataObject\\FieldCollection",
"implementsInterfaces": "App\\Model\\DataObject\\Interface",
"blockedVarsForExport": [],
"isWriteable": true
}Changes
- info
endpoint added
- info