---
title: "Update an existing task"
method: PUT
path: "/api/public/tasks/{id}"
tags: ["tasks"]
---

# Update an existing task

`PUT /api/public/tasks/{id}`

Updates an existing task by ID. Only the fields provided in the request body will be updated. All fields are optional for updates.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateTaskPublicDto
  - `title` string
  - `description` string, nullable
  - `dueDate` string, nullable
  - `dueTime` string, nullable
  - `timezone` string, nullable
  - `responsibleIds` string[]
  - `aiContactId` string, nullable
  - `aiCustomerId` string, nullable
  - `priority` '0' | '1' | '2'
  - `associateToCalendar` boolean
  - `newStatusPosition` number
  - `newStatusName` string

## Response `200`

Task updated successfully

- TaskResponseDto

## Other responses

- `400` — Invalid task ID or request body
- `401` — Unauthorized - Invalid or missing authentication token
- `404` — Task not found
- `default`

---

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