---
title: "Update call event"
method: PATCH
path: "/crm/v1/events/call/{call_event_id}"
tags: ["call events"]
---

# Update call event

`PATCH /crm/v1/events/call/{call_event_id}`

## Request

- Base URL: `https://{domain}.uspacy.ua`
- URL: `https://{domain}.uspacy.ua/crm/v1/events/call/{call_event_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/uspacy/apis/crm-service-2/docs/crm/v1/events/call/:call_event_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates a call event. Typically used to finalize call data (duration, recording link, notes).

## Request body

- CallEventDto
  - `integration_code` string, required: It could be integration_code or unique code of source where data are imported from
  - `external_id` integer: It should be unique for one particular integration_code or null if adding call event directly (e.g. import)
  - `tmp_id` integer: It should be unique for one particular integration_code or null if adding call event directly (e.g. import)
  - `task_id` integer: If task_id is provided the task's creation for missed incoming call is passing away
  - `contact_id` integer: If one of dynamic binding fields (deal_id, lead_id, contact_id, company_id) is provided the automatic binding with existing crm entities is passing away
  - `company_id` integer: If one of dynamic binding fields (deal_id, lead_id, contact_id, company_id) is provided the automatic binding with existing crm entities is passing away
  - `lead_id` integer: If one of dynamic binding fields (deal_id, lead_id, contact_id, company_id) is provided the automatic binding with existing crm entities is passing away
  - `deal_id` integer: If one of dynamic binding fields (deal_id, lead_id, contact_id, company_id) is provided the automatic binding with existing crm entities is passing away
  - `entity_table` 'empty' | 'leads,' | 'deals' | 'contacts' | 'companies': The base entity the call event connected to could be provided or could be omitted in a case if just have usual call. In this the "empty" value will be automatically filled and the call event will be shown just in call logs history
  - `employees` unknown[]: Employees that have been dialed during the call. Could be omitted if don't have such information
    - unknown
  - `contacts` unknown[]: The contacts that have connection with particulat call event. Could be omitted if don't have such information
    - unknown
  - `companies` unknown[]: The companies that have connection with particulat call event. Could be omitted if don't have such information
    - unknown
  - `subject` string: Could be omitted. In such case the default value will be "Call"
  - `call_type` 'outgoing' | 'incoming', required
  - `ended_call_status` string
  - `from` string, required
  - `to` string: Could be null cause on new event call from telephony we don't have "to" value for sure
  - `begin_time` integer
  - `end_time` integer
  - `duration` integer
  - `call_record_link` string: It could be call link that telephony provides or link issued by import flow (via files-backend)
  - `note` string

## Response `200`

OK

## Other responses

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

---

[API](https://skmtc.dev/uspacy/apis/crm-service-2.md) - [All operations](https://skmtc.dev/uspacy/apis/crm-service-2/llms.txt) - [OpenAPI document](https://skmtc.dev/uspacy/apis/crm-service-2/revisions/f80578d43845?raw)
