GET
/
tasks
/
{taskId}
/
subtasks
/
{id}
Get a subtask
curl --request GET \
  --url https://api.smokeball.com/tasks/{taskId}/subtasks/{id} \
  --header 'Authorization: <api-key>' \
  --header 'x-api-key: <api-key>'
{
  "id": "<string>",
  "href": "<string>",
  "relation": "<string>",
  "method": "GET",
  "self": {
    "id": "<string>",
    "href": "<string>",
    "relation": "<string>",
    "method": "GET"
  },
  "parentTask": {
    "id": "<string>",
    "href": "<string>",
    "relation": "<string>",
    "method": "<string>"
  },
  "createdBy": {
    "id": "<string>",
    "href": "<string>",
    "relation": "<string>",
    "method": "<string>"
  },
  "completedBy": {
    "id": "<string>",
    "href": "<string>",
    "relation": "<string>",
    "method": "<string>"
  },
  "lastUpdatedBy": {
    "id": "<string>",
    "href": "<string>",
    "relation": "<string>",
    "method": "<string>"
  },
  "subject": "Confer with Mary",
  "completedDate": "2020-02-15T00:00:00Z",
  "createdDate": "2020-02-15T00:00:00Z",
  "isCompleted": false,
  "isDeleted": false,
  "lastUpdated": 637847425252027400
}

Authorizations

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

Path Parameters

taskId
string
required
id
string
required

Response

200
application/json

When request is successful. Returns a 'SubTask' object.

Subtask resource.

id
string | null
href
string | null
relation
string | null
method
string | null
default:GET
self
object
parentTask
object

The parent (task) of the subtask.

createdBy
object

The staff member who created the subtask.

completedBy
object

The staff member who completed the subtask.

lastUpdatedBy
object

The staff member who last updated the subtask.

subject
string | null

The subject - a short description of the subtask.

Example:

"Confer with Mary"

completedDate
string | null

When the subtask was completed.

Example:

"2020-02-15T00:00:00Z"

createdDate
string | null

When the subtask was created.

Example:

"2020-02-15T00:00:00Z"

isCompleted
boolean

True when the subtask is completed.

Example:

false

isDeleted
boolean

True when the subtask is deleted.

Example:

false

lastUpdated
integer

Last updated timestamp.

Example:

637847425252027400