cURL
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" }
Links the specified document to the specified task.
Data transfer object for a task document.
When request is accepted. Returns a hypermedia 'Link' object of the link to be created.
The response is of type object.
object