Headers

Header name Description
Content-Type
required
application/json
X-API-KEY
required
YOUR_API_KEY

Params

Param name Description
project_id
required

Project ID

Validations:

  • Must be a String

Examples

// Failed request
POST /api/v2/projects/not-found-id/restore
404
{
  "error": "project not found"
}
// Trying to restore project that is not in trash bin
POST /api/v2/projects/66KPmH8VF505i174ZgEh/restore
400
{
  "error": "Can not restore Projects that is not in trash bin"
}
// Successful request
POST /api/v2/projects/Qtk0JBjs4kb5J9GSNxlA/restore
200
{
  "ok": "ok"
}

Errors

Code Description
401 Unauthorized
404 Not found
500 Internal Server Error
422 Missing parameters