Up - API Reference - Home
Requires JWT
Remove a field from a class.
POST /api/p/<project gid>/classes/fields/remove
Authorization: Bearer <JWT>
{
"class": "<class gid>",
"field": "<field gid>"
}
class
gid of the class that holds the field
field
gid of the field that is removed
Authorization: <JWT>
{
"success": true,
"result": {
"class": "<class gid>"
},
"data": {
"classes": {
"<class gid>": {…}
},
"layouts": {
…
}
}
}
class
the class with the removed field - this is a working copy.
classes
Class info with name, 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