---
title: "Create a project task"
method: POST
path: "/v1/spaces/{spaceId}/projects/{projectId}/tasks"
tags: ["Project Tasks"]
---

# Create a project task

`POST /v1/spaces/{spaceId}/projects/{projectId}/tasks`

Create a new project task

## Path parameters

- `spaceId` integer, required
- `projectId` integer, required

## Headers

- `X-Org-Id` integer, required

## Request body

- ProjectTaskCreateRequest — Request object for creating a new project task.
  - `taskTitle` string — Title of the task. Must be between 3 and 500 characters.
  - `description` string — Description of the task. Optional.
  - `owners` integer[] — List of owner IDs assigned to the task. Optional.
  - `startDate` string, date-time — Start date of the task. Optional.
  - `dueDate` string, date-time — Due date of the task. Optional.
  - `noOfDays` integer — Duration in working days. When sent together with startDate or dueDate, the missing date is computed by honouring the organisation's operational hours.
  - `completion` integer — Completion percentage of the task. Must be between 0 and 100. Optional.
  - `status` string — Status of the task. Optional.
  - `priority` string — Priority of the task. Optional.
  - `tags` string[] — List of tags associated with the task. Optional.

## Response `200`

Project task created successfully

---

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