Up - API Reference - Home
Requires JWT.
Deletes a 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/delete
Authorization: Bearer <JWT>
{
"project": "<project gid>"
}
Authorization: <JWT>
{
"success": true,
"result": {
"project": "<project gid>",
},
"data": {
"cc.projects": {
"<project gid>": {
"gid": "<project gid>",
…,
"status": "deleted",
…
}
}
}
}
project is the project gid you provided.
cc.projects is a dictionary with one entry for the project, where the status is set to '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