---
title: "Update a task"
method: PUT
path: "/tasks/{task_id}"
---

# Update a task

`PUT /tasks/{task_id}`

## Path parameters

- `task_id` integer, required

## Request body

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

## Response `200`

Task updated

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

## Changes

- **2025-02-05** `6dc2430da32f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitbookio/apis/the-lightswitch-api/changes/tasks/:task_id/put.md)

---

[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)
