curl --request POST \
--url https://api.smokeball.com/tasks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '{
"matterId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"staffId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"completedByStaffId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"assigneeIds": [
"<string>"
],
"subject": "Review contract for John Smith",
"note": "Contract needs to be reviewed and discussed with John",
"isCompleted": false,
"categories": [
"<string>"
],
"completedDate": "2022-07-01",
"dueDate": "2022-07-01",
"duration": "PT4H33M"
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}
Creates a task.
curl --request POST \
--url https://api.smokeball.com/tasks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json-patch+json' \
--header 'x-api-key: <api-key>' \
--data '{
"matterId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"staffId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"completedByStaffId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"assigneeIds": [
"<string>"
],
"subject": "Review contract for John Smith",
"note": "Contract needs to be reviewed and discussed with John",
"isCompleted": false,
"categories": [
"<string>"
],
"completedDate": "2022-07-01",
"dueDate": "2022-07-01",
"duration": "PT4H33M"
}'
{
"id": "<string>",
"href": "<string>",
"relation": "<string>",
"method": "GET"
}
When request is accepted. Returns a hypermedia 'Link' object of the task to be created.
The response is of type object
.