---
title: "Get subtasks"
method: GET
path: "/tasks/{taskId}/subtasks"
tags: ["Tasks"]
---

# Get subtasks

`GET /tasks/{taskId}/subtasks`

Returns a list of subtasks for a specified task if associated with the authenticated client.

## Path parameters

- `taskId` string, uuid, required

## Response `200`

When request is successful. Returns a list of 'SubTask' objects.

- SubTaskCollection
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable
  - `self` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `value` SubTask[], nullable
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
    - `self` Link
      - `id` string, nullable
      - `href` string, nullable
      - `relation` string, nullable
      - `method` string, nullable
    - `parentTask` Link
      - `id` string, nullable
      - `href` string, nullable
      - `relation` string, nullable
      - `method` string, nullable
    - `createdBy` Link
      - `id` string, nullable
      - `href` string, nullable
      - `relation` string, nullable
      - `method` string, nullable
    - `completedBy` Link
      - `id` string, nullable
      - `href` string, nullable
      - `relation` string, nullable
      - `method` string, nullable
    - `lastUpdatedBy` Link
      - `id` string, nullable
      - `href` string, nullable
      - `relation` string, nullable
      - `method` string, nullable
    - `subject` string, nullable — The subject - a short description of the subtask.
    - `completedDate` string, date-time, nullable — **Deprecated.** Use `CompletedDateOnly` instead. When the subtask was completed in UTC.
    - `completedDateOnly` string, date-time, nullable — The date when the subtask was completed. The time portion will always be set to 00:00:00 and should be ignored. Only the date portion is relevant.
    - `createdDate` string, date-time, nullable — **Deprecated.** Use `CreatedDateOnly` instead. When the subtask was created in UTC.
    - `createdDateOnly` string, date-time, nullable — The date when the subtask was created. The time portion will always be set to 00:00:00 and should be ignored. Only the date portion is relevant.
    - `isCompleted` boolean — True when the subtask is completed.
    - `isDeleted` boolean — True when the subtask is deleted.
    - `lastUpdated` integer — Last updated timestamp.

## Other responses

- `403` — When subtask with specified id is not associated with authenticated client.
- `404` — When subtask with specified id does not exist.

---

[API](https://skmtc.net/smokeball/apis/api.md) · [All operations](https://skmtc.net/smokeball/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smokeball/api/revisions/197984da9b42/schema)
