POST
/
tasks
/
{taskId}
/
documents
curl --request POST \
  --url https://api.smokeball.com/tasks/{taskId}/documents \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json-patch+json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "documentId": "cf666f06-3ff2-4a41-8c7f-ab5a8bc6a277",
  "type": 0
}'
{
  "id": "<string>",
  "href": "<string>",
  "relation": "<string>",
  "method": "GET"
}

Authorizations

x-api-key
string
header
required
Authorization
string
header
required

Path Parameters

taskId
string
required

Body

Data transfer object for a task document.

Response

202
application/json

When request is accepted. Returns a hypermedia 'Link' object of the link to be created.

The response is of type object.