Header name | Description |
---|---|
Content-Type required |
application/json |
X-API-KEY required |
YOUR_API_KEY |
Param name | Description |
---|---|
comment required |
Comment content Validations:
|
// Successful request POST /api/v2/assets/GFGxVzokYRrLy5pqvSoZ/comments { "comment": "new comment" } 200 { "comment": { "id": 2, "message": "new comment", "updated_at": "2023-11-27T09:42:41.296Z", "user": { "id": 39, "email": "admin-user-23@example.com", "first_name": null, "last_name": null, "avatar_url": null }, "mentioned_users": [] } }
// If :asset_id is not found POST /api/v2/assets/not-found-id/comments { "comment": "new comment" } 404 { "error": "asset not found" }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |