---
title: "Edit CRM activity"
method: PATCH
path: "/crm/v1/static/tasks/{itemId}"
tags: ["activities"]
---

# Edit CRM activity

`PATCH /crm/v1/static/tasks/{itemId}`

Updates an existing CRM activity. Only provided fields are changed.

## Request body

- CreateUpdateCrmTaskDto
  - `title` string
  - `createdBy` integer
  - `type` 'task' | 'call' | 'meeting' | 'chat' | 'email'
  - `status` 'planned' | 'done' | 'cancelled'
  - `description` string
  - `startTime` integer
  - `endTime` integer
  - `responsibleId` integer
  - `companyId` integer
  - `participants` integer[]
  - `deals` integer[]
  - `leads` integer[]
  - `contacts` integer[]

## Response `200`

OK

- CrmTaskEntity
  - `id` integer
  - `createdBy` integer
  - `title` string
  - `type` 'task' | 'call' | 'meeting' | 'chat' | 'email'
  - `status` 'planned' | 'done' | 'cancelled'
  - `description` string
  - `startTime` integer
  - `endTime` integer
  - `responsibleId` integer
  - `companyId` integer
  - `participants` integer[]
  - `contacts` CrmEntity[]
    - `title` string
    - `owner` integer
    - `source` string
    - `email` object[]
      - `id` string
      - `type` string
      - `value` string
      - `main` boolean
    - `phone` object[]
      - `id` string
      - `type` 'WORK' | 'MOBILE' | 'HOME'
      - `value` string
      - `code` string
    - `messengers` object[]
      - `id` string
      - `type` string
      - `link` string
  - `deals` CrmEntity[]
    - `title` string
    - `owner` integer
    - `source` string
    - `email` object[]
      - `id` string
      - `type` string
      - `value` string
      - `main` boolean
    - `phone` object[]
      - `id` string
      - `type` 'WORK' | 'MOBILE' | 'HOME'
      - `value` string
      - `code` string
    - `messengers` object[]
      - `id` string
      - `type` string
      - `link` string
  - `leads` CrmEntity[]
    - `title` string
    - `owner` integer
    - `source` string
    - `email` object[]
      - `id` string
      - `type` string
      - `value` string
      - `main` boolean
    - `phone` object[]
      - `id` string
      - `type` 'WORK' | 'MOBILE' | 'HOME'
      - `value` string
      - `code` string
    - `messengers` object[]
      - `id` string
      - `type` string
      - `link` string
  - `company` CrmEntity
    - `title` string
    - `owner` integer
    - `source` string
    - `email` object[]
      - `id` string
      - `type` string
      - `value` string
      - `main` boolean
    - `phone` object[]
      - `id` string
      - `type` 'WORK' | 'MOBILE' | 'HOME'
      - `value` string
      - `code` string
    - `messengers` object[]
      - `id` string
      - `type` string
      - `link` string

## Other responses

- `401` — Access token is missing or invalid
- `422` — Validation error response

---

[API](https://skmtc.net/uspacy/apis/crm-service-2.md) · [All operations](https://skmtc.net/uspacy/apis/crm-service-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uspacy/crm-service-2/versions/f80578d43845/schema)
