Up - API Reference - Home
Requires JWT.
Revert a record's definition.
We used a copy to keep track of the changes; we remove the copy and assign the original to the record.
POST /api/p/<project gid>/records/definition/revert
Authorization: Bearer <JWT>
{
"record": "<record gid>"
}
record the record's gid
language return data for this (project) language.
languages return data for these (project) languages.
If you request language and/or languages, you get the records' title and fields for the combined set. If you request neither, you'll get all available languages.
Authorization: <JWT>
{
"success": true,
"result": {
"record": "<record gid>",
"definition": "<definition gid>"
},
"data": {
"definitions": {
"<definition gid>": {
"gid": "<definition gid>",
…
}
},
"records": {
"<record gid>": {
"gid": "<record gid>",
"definition": "<definition gid>",
…
}
}
}
}
record the updated record
definition the original definition for the record.
definitions Definition info with name, classes, fields.
records Record info with hierarchy, definition, field values.
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 - parent record doesn't exist