Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
// Successful request DELETE /api/v2/projects/AJ0Ljs_KsE_ENa-M3YTx/comments/16 200 { "ok": "comment deleted" }
// If :project_id is not found DELETE /api/v2/projects/not-found-id/comments/17 404 { "error": "project not found" }
// If :comment_id is not found DELETE /api/v2/projects/ZDuRN0Lm1uctjqimQIiZ/comments/not-found-id 404 { "error": "Couldn't find Comment with 'id'=not-found-id [WHERE \"comments\".\"target_id\" = $1 AND \"comments\".\"target_type\" = $2]" }
// If current user is not a owner of the comment DELETE /api/v2/projects/e4jYqhAOQ4CXNK9Du-7F/comments/18 403 { "error": "Not allowed to perform this action" }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |