---
title: "PATCH /api/v4/tasks/{id}"
method: PATCH
path: "/api/v4/tasks/{id}"
---

# PATCH /api/v4/tasks/{id}

`PATCH /api/v4/tasks/{id}`

Update a task by id.

## Path parameters

- `id` integer, required

## Request body

- TaskUpdateById
  - `task_type_id` integer
  - `text` string
  - `complete_till` integer
  - `entity_id` integer
  - `entity_type` string
  - `responsible_user_id` integer
  - `is_completed` boolean
  - `result` object
    - `text` string

## Response `200`

The request has succeeded.

- union
  - TaskUpdateResponse
    - `_links` object
    - `_embedded` object
      - `tasks` TaskUpdatedResult[]
        - `id` integer
        - `updated_at` integer
        - `_links` object
  - Problem
    - `title` string
    - `status` integer
    - `detail` string
    - `type` string

---

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