---
title: "Update a task"
method: PATCH
path: "/crm/tasks/{id}"
tags: ["Tasks"]
---

# Update a task

`PATCH /crm/tasks/{id}`

## Path parameters

- `id` string, required

## Request body

- Body12
  - `name` string — Name of task
  - `duration` integer — Duration of task in milliseconds [1 minute = 60000 ms]
  - `taskTypeId` string — Id for type of task e.g Call / Email / Meeting etc.
  - `date` string, date-time — Task date/time
  - `notes` string — Notes added to a task
  - `done` boolean — Task marked as done
  - `assignToId` string — To assign a task to a user you can use either the account email or ID.
  - `contactsIds` integer[] — Contact ids for contacts linked to this task
  - `dealsIds` string[] — Deal ids for deals a task is linked to
  - `companiesIds` string[] — Companies ids for companies a task is linked to

## Response `204`

Task updated successfully

## Other responses

- `400` — Returned when invalid data posted
- `404` — Returned when task id is not found

---

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