Comments
The comment object
{
"id": 1534,
"created": "2022-11-03T06:03:04.590058Z",
"modified": "2022-11-03T06:03:04.590632Z",
"author": {
"id": 202,
"first_name": "Josh",
"last_name": "Sharp",
// shown here if user is a team member
"email": null,
// denotes whether the user is a team member
"staff": false
},
// the ID of the comment object being replied to, if any
"in_reply_to": null,
// raw markdown
"content": "Making a comment",
// parsed into html
"parsed_content": "<p>Making a comment</p>"
}
Get all comments for a task
Pass in the ID of the task in the URL.
GET https://changemap.co/api/1/map/tasks/:id/comments/
Request
Response
Returns a paged list of comments.
Get a specific comment
Pass in the ID of the comment in the URL.
GET https://changemap.co/api/1/map/comments/:id/
Request
Response
Returns a JSON comment object, or a HTTP 404 if it isn't found.
Create a new comment
The comment's author will be the name you gave this API token.
POST https://changemap.co/api/1/map/comments/create/
Parameters
Send a JSON object with the following fields.
Name | Required | Value |
---|---|---|
parent |
Required | Integer ID of parent task |
content |
Required | String markdown body of the comment |
in_reply_to |
Integer ID of the comment this is in reply to |
Request
Response
A successful response returns a HTTP 201 Created and the new comment object as JSON. Errors with your data will return a HTTP 400 including a list of validation errors.
Delete a comment
Use the DELETE
method and pass the comment ID to specify which comment.
DELETE https://changemap.co/api/1/map/comments/:id/
Request
Response
Returns an empty HTTP 204 if successful, or HTTP 404 if not found.