Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
// Successful request GET /api/v2/assets/aNrQZjg-mWXu0zH_j44F/comments/9 200 { "comment": { "id": 9, "message": "Sample comment for tests", "updated_at": "2023-11-27T09:42:43.720Z", "user": { "id": 51, "email": "admin-user-35@example.com", "first_name": null, "last_name": null, "avatar_url": null }, "mentioned_users": [] } }
// If :asset_id is not found GET /api/v2/assets/not-found-id/comments/10 404 { "error": "asset not found" }
// If :comment_id is not found GET /api/v2/assets/cHZtkitg97U8gDluqN9o/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]" }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |