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