Edit Task - AmFlint/taco-api-go GitHub Wiki
Edit a task
URL
http://localhost/boards/{boardId}/lists/{listId}/tasks/{taskId}
Http Method
PUT
Headers
None.
Http Status Codes
- 400: Bad Request
- 404: Task not found
Query Parameters
title: string - The title of the taskdescription: string - The description of the taskpoints: float | default 0 - the number of story points assigned to the taskstatus: boolean | default to false - the status of the task
Request
- Request with Valid Informations
curl -H "Content-Type: application/json" -X PUT -d '{"title":"updated title", "points": 17}' http://localhost/boards/1/tasks/5a951e7564a83d00c651a286
- Response
{
"taskId": "5ae5be163f149378e52f7e35",
"title": "updated title",
"description": "Create action for listing subtasks inside controller, verify parent tasks exist and return the given subtasks with right REST response",
"status": false,
"points": 17
}