Votes
The vote object
{
"id": 2489,
"created": "2021-06-23T08:12:08.503002Z",
"author": {
"id": 202,
"first_name": "Josh",
"last_name": "Sharp",
// shown here if team member
"email": null,
// denotes if this user is a team member
"staff": false
}
}
Get all votes for a task
Pass in the ID of the task in the URL.
GET https://changemap.co/api/1/map/tasks/:id/votes/
Request
Response
Returns a paged list of votes.
Get a specific vote
Pass in the ID of the vote in the URL.
GET https://changemap.co/api/1/map/votes/:id/
Request
Response
Returns a JSON vote object, or a HTTP 404 if it isn't found.
Delete a vote
Use the DELETE
method and pass the vote ID to specify which vote.
DELETE https://changemap.co/api/1/map/votes/:id/
Request
Response
Returns an empty HTTP 204 if successful, or HTTP 404 if not found.