POST
/
tasks
/
{taskId}
/
subtasks
curl --request POST \
  --url https://api.smokeball.com/tasks/{taskId}/subtasks \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json-patch+json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "staffId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
  "completedByStaffId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
  "subject": "Confer with Mary",
  "isCompleted": false,
  "completedDate": "2022-07-01"
}'
{
  "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 subtask.

Response

202 - application/json

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

The response is of type object.