---
title: "Create subtask"
method: POST
path: "/projects/{project_id}/assignments/{assignment_id}/subtasks"
tags: ["subtasks"]
---

# Create subtask

`POST /projects/{project_id}/assignments/{assignment_id}/subtasks`

Creates a subtask.

## Request body

- object — A work item that is part of an aassignment (the parent object).
  - `id` integer — The unique identifier for the subtask.
  - `assignment_id` integer — The ID of the assignment to which this subtask belongs.
  - `assignable_id` integer — The ID of the project, phase, or leave type to which the the assignment applies.
  - `description` string, required — Identifies the subtask.
  - `completed` boolean — This is true if the subtask is done; otherwise, it's false.
  - `updated_at` string, date-time — The time of the last update.
  - `created_at` string, date-time — The time of creation.
  - `updated_by` integer — The ID of the user who last updated this subtask.

## Response `200`

The new subtask.

- Subtask — A work item that is part of an aassignment (the parent object).
  - `id` integer — The unique identifier for the subtask.
  - `assignment_id` integer — The ID of the assignment to which this subtask belongs.
  - `assignable_id` integer — The ID of the project, phase, or leave type to which the the assignment applies.
  - `description` string — Identifies the subtask.
  - `completed` boolean — This is true if the subtask is done; otherwise, it's false.
  - `updated_at` string, date-time — The time of the last update.
  - `created_at` string, date-time — The time of creation.
  - `updated_by` integer — The ID of the user who last updated this subtask.

## Other responses

- `default` — Generic error payload

---

[API](https://skmtc.net/smartsheet/apis/resource-management-openapi-reference.md) · [All operations](https://skmtc.net/smartsheet/apis/resource-management-openapi-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartsheet/resource-management-openapi-reference/versions/e4c439ac13f2/schema)
