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/projects/69FoBmXIGthLHT4Wm0g6/comments/13 { "comment": "new updated comment" } 200 { "comment": { "message": "new updated comment", "id": 13, "updated_at": "2023-11-27T09:43:12.320Z", "user": { "id": 182, "email": "admin-user-159@example.com", "first_name": null, "last_name": null, "avatar_url": null }, "mentioned_users": [] } }
// If :project_id is not found POST /api/v2/projects/not-found-id/comments/14 { "comment": "new updated comment" } 404 { "error": "project not found" }
// If :comment_id is not found POST /api/v2/projects/YhJfRmq8pKTfGH-CcAZe/comments/not-found-id { "comment": "new updated comment" } 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 POST /api/v2/projects/QEGwnlhtPfodmppV_gNr/comments/15 { "comment": "new updated comment" } 403 { "error": "Not allowed to perform this action" }
Code | Description |
---|---|
401 | Unauthorized |
404 | Not found |
500 | Internal Server Error |
422 | Missing parameters |