Up - API Reference - Home
Requires JWT
Move a child definition inside a definition.
If you don't specify before_childdefinition (or the specified before_childdefinition isn't in the definition), the child definition is moved to the end.
Note: you cannot modify child definitions for an extended definition.
POST /api/p/<project gid>/definitions/childdefinitions/move
Authorization: Bearer <JWT>
{
"definition": "<definition gid>",
"childdefinition": "<child definition gid>",
"before_childdefinition": "<child definition gid>"
}
definition gid of the definition that holds the field
childdefinition gid of the child definition that is moved
before_childdefinition the moved child definition is put before this child definition
Authorization: <JWT>
{
"success": true,
"result": {
"definition": "<definition gid>"
},
"data": {
"definitions": {
"<definition gid>": {…}
},
"layouts": {
…
}
}
}
definition the definition with the moved child definition - this is a working copy.
definitions Definition info with name, classes, fields.
layouts Layout info with hierarchy, if the layout changed to a working copy.
400 Bad request - missing parameters or wrong type or value
401 Unauthorized - missing or expired JWT
403 Forbidden - not a member of this project
422 Unprocessable entity - can't work with this item