Add a preview to given task.

POST /actions/tasks/{task_id}/comments/{comment_id}/add-preview

Revision is automatically set: it is equal to last revision + 1, or can be set manually.

Path parameters

Body

Responses

  • 201

    Preview added to given task

POST /actions/tasks/{task_id}/comments/{comment_id}/add-preview
curl \
 -X POST http://localhost:8080/api/actions/tasks/{task_id}/comments/{comment_id}/add-preview \
 -H "Authorization: $API_KEY" \
 -d '{"duration":42}'
Request example
{
  "duration": 42
}