Add preview metadata to given task. The preview file itself should be

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

uploaded afterward.

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

Path parameters

  • task_id string(uuid) Required
  • comment_id string(uuid) Required
application/json

Body Required

  • revision integer

    Revision number for the preview

Responses

  • 201 application/json

    Preview metadata added to given task

  • 400

    Bad request

  • 404

    Task or comment not found

POST /actions/tasks/{task_id}/comments/{comment_id}/add-preview
curl \
 --request POST 'http://api.example.com/actions/tasks/a24a6ea4-ce75-4665-a070-57453082c25/comments/a24a6ea4-ce75-4665-a070-57453082c25/add-preview' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"revision":1}'
Request examples
{
  "revision": 1
}
Response examples (201)
{}