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

# Create a task

`POST /psa/projects/{projectId}/tasks`

Create project task and returns created task identifier.

## Path parameters

- `projectId` string, required

## Request body

- ProjectTask
  - `projectId` string, required
  - `name` string, required
  - `description` string, nullable
  - `taskBillingType` 0 | 1 | 2
  - `assignedTo` string[], nullable
  - `startDate` string, date-time, required
  - `endDate` string, date-time, required
  - `estimatedHours` number, double, nullable
  - `phaseId` string, nullable

## Response `200`

OK

- StringResponse — class represents response.
  - `succeeded` boolean — Gets or sets a value indicating whether this Keka.API.Web.Core.Response`1 is succeeded.
  - `message` string, nullable — Gets or sets the message.
  - `errors` string[], nullable — Gets or sets the errors.
  - `data` string, nullable — Gets or sets the data.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

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