---
title: "Create task"
method: POST
path: "/projects/{project_id}/tasks"
tags: ["Tasks"]
---

# Create task

`POST /projects/{project_id}/tasks`

Creates a new task inside a project

## Path parameters

- `project_id` integer, required

## Request body

- object
  - `name` string, required — Name of the task
  - `description` string — Description of the task - supports limited subset of HTML &lt;b&gt;, &lt;ul&gt;, &lt;li&gt;, &lt;br&gt;, and &lt;a&gt;.

## Response `200`

successfully creates the task.

- Task
  - `id` integer
  - `name` string — Name of the task
  - `description` string — Description of the task - supports limited subset of HTML &lt;b&gt;, &lt;ul&gt;, &lt;li&gt;, &lt;br&gt;, and &lt;a&gt;.
  - `status` 'to_do' | 'pending_review' | 'approved' — Status of the task

---

[API](https://skmtc.net/gettruss/apis/api-v1.md) · [All operations](https://skmtc.net/gettruss/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gettruss/api-v1/versions/7c956b3d1bdf/schema)
