Up - API Reference - Home
Requires JWT.
Move enables changing the order in which the fieldlists are presented.
You must specify the fieldlist
key you want to move. You can also specify the before_fieldlist
, and the fieldlist will be placed before that one. If you don't provide a before_fieldlist
, the fieldlist
will be moved to the end.
POST /api/p/<project gid>/fieldlists/move
Authorization: Bearer <JWT>
{
"fieldlist": "4782d5f5-b62b-4ecb-bf71-5be637a15dc5",
"before_fieldlist": "31cbd8ac-4f13-4ac3-8924-752ea94d1c65"
}
or
POST /api/p/<project gid>/fieldlists/move
Authorization: Bearer <JWT>
{
"fieldlist": "4782d5f5-b62b-4ecb-bf71-5be637a15dc5"
}
Authorization: <JWT>
{
"success": true,
"result": {
"project": "<project gid>"
},
"data": {
"cc.projects": {
"<project gid>": {
…,
"options": {
"fieldlists": {
"31cbd8ac-4f13-4ac3-8924-752ea94d1c65": "Stentor Webshop",
"4782d5f5-b62b-4ecb-bf71-5be637a15dc5": "Catalogger Catalog"
},
…,
"orderedfieldlists": [
"4782d5f5-b62b-4ecb-bf71-5be637a15dc5", // here it is!
"31cbd8ac-4f13-4ac3-8924-752ea94d1c65"
],
…
},
…
}
}
}
}
project
the current project.
cc.projects
Project updated with orderedfieldlists.
400
Bad request - missing parameters or wrong type or value
401
Unauthorized - missing or expired JWT
403
Forbidden - not a member of this project