---
title: "Add a new task"
method: POST
path: "/tasks"
---

# Add a new task

`POST /tasks`

## Request body

- Task
  - `id` integer
  - `projectId` integer
  - `title` string
  - `status` string

## Response `201`

Task created

---

[API](https://skmtc.dev/gitbookio/apis/the-lightswitch-api.md) · [All operations](https://skmtc.dev/gitbookio/apis/the-lightswitch-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitbookio/the-lightswitch-api/revisions/6dc2430da32f/schema)
