Headers

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

Examples

// Successful request
DELETE /api/v2/assets/jyFeCfaCfuHzE5MRDG6-/comments/6
200
{
  "ok": "comment deleted"
}
// If :asset_id is not found
DELETE /api/v2/assets/not-found-id/comments/7
404
{
  "error": "asset not found"
}
// If :comment_id is not found
DELETE /api/v2/assets/exNa-QFoFFI9pCKaifJ4/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/assets/nlUwQmik222LrU-tzLwE/comments/8
403
{
  "error": "Not allowed to perform this action"
}

Errors

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