Up - API Reference - Home
Requires JWT
Move a localization. The first localization is the default.
POST /api/p/<project gid>/languages/move
Authorization: Bearer <JWT>
{
"language": "en",
"before_language": "nl"
}
Note: the language must be given in lower-case, always
Authorization: <JWT>
{
"success": true,
"result": {
"project": "<project gid>"
},
"data": {
"cc.projects": {
"<project gid>": {
"name": "Project Name",
"status": "active",
"languages": ["en", "nl"],
…
}
}
}
}
project
is the current project.
cc.projects
is a dictionary with the current project.
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 - cannot perform update