Up - API Reference - Home
Requires JWT.
Undeletes a deleted project. You must be the owner of this project.
A deleted project can be undeleted unless it was followed by a permanent_delete.
POST /api/projects/undelete
Authorization: Bearer <JWT>
{
"project": "<project gid>"
}
Authorization: <JWT>
{
"success": true,
"result": {
"project": "<project gid>",
},
"data": {
"cc.projects": {
"<project gid>": {
"gid": "<project gid>",
…,
"status": "active",
…
}
}
}
}
project
is the project gid you provided.
cc.projects
is a dictionary with one entry for the project, where the status is no longer 'deleted'.
400
Bad request - missing argument
401
Unauthorized - missing or expired JWT
403
Forbidden - not the owner of this project
422
Unprocessable Entity - deletion failed