Up - API Reference - Home
Requires JWT
Move a class inside a definition.
If you don't specify before_class (or the specified before_class isn't in the definition), the class is moved to the end.
Note: you cannot modify an extended definition (use the records/definition api).
POST /api/p/<project gid>/definitions/classes/move
Authorization: Bearer <JWT>
{
"definition": "<definition gid>",
"class": "<class gid>",
"before_class": "<class gid>"
}
definition gid of the definition that holds the class
class gid of the class that is moved
before_class the moved class is put before this class
Authorization: <JWT>
{
"success": true,
"result": {
"definition": "<definition gid>"
},
"data": {
"definitions": {
"<definition gid>": {…}
},
"layouts": {
…
}
}
}
definition the definition with the moved class - 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