---
title: "Edit tasks"
method: PATCH
path: "/api/v4/tasks"
---

# Edit tasks

`PATCH /api/v4/tasks`

This method allows to edit multiple tasks. When updating multiple tasks, an array of task objects is passed.

## Request body

- object
  - `RAW_BODY` object[]
    - `id` integer — Task id
    - `responsible_user_id` integer — Task responsible user ID. Current user ID by default
    - `entity_id` integer — ID of the entity the task is linked to.
    - `entity_type` 'leads' | 'contacts' | 'companies' — Type of the entity the task is linked to.
    - `is_completed` boolean — Defines whether the task is completed.
    - `task_type_id` integer — Task type
    - `text` string — Task description
    - `duration` integer — Task duration in seconds
    - `complete_till` integer — Task deadline date in the format of Unix Timestamp.
    - `result` object — Task result
      - `text` string — Task result text

## Response `200`

Request successfull

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden

---

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