Create a new comment for given task.

POST /actions/tasks/{task_id}/comment

It requires a text, a task_status and a person as arguments. This way, comments keep history of status changes. When the comment is created, it updates the task status with given task status.

Path parameters

Body

person ID, name, comment, revision and change status of task

Responses

  • 201

    New comment created

POST /actions/tasks/{task_id}/comment
curl \
 -X POST http://localhost:8080/api/actions/tasks/{task_id}/comment \
 -H "Authorization: $API_KEY" \
 -d '{"task_status_id":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25","comment":"string","person_id":"a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25","created_at":"2022-07-12T13:00:00","checklist":{"item 1":"string"}}'
Request example
{
  "task_status_id": "a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25",
  "comment": "string",
  "person_id": "a24a6ea4-ce75-4665-a070-57453082c25a4-ce75-4665-a070-57453082c25",
  "created_at": "2022-07-12T13:00:00",
  "checklist": {
    "item 1": "string"
  }
}