---
title: "Update callback"
method: PATCH
path: "/v4/accounts/{voip_id}/integrations/events/callbacks/{id}"
tags: ["Events Callbacks"]
---

# Update callback

`PATCH /v4/accounts/{voip_id}/integrations/events/callbacks/{id}`

## Request

- Base URL: `https://api.phone.com`
- URL: `https://api.phone.com/v4/accounts/{voip_id}/integrations/events/callbacks/{id}`
- Auth: HTTP bearer

Updates some properties of the callback

## Path parameters

- `voip_id` integer, required
- `id` integer, required

## Request body

- EventsCallback
  - `name` string, nullable: Event name
  - `fallback_callback_id` integer, nullable: Fallback callback ID
  - `profile_id` integer, nullable: Profile ID
  - `enabled` boolean: Callback status
  - `mode` 'HTTPS' | 'HTTP' | 'APPLICATION' | 'EMAIL': Callback mode
  - `config` object, required: Config object, configuration of the callback
    - `url` string: URL of the callback
    - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE': Method of the callback (default is POST)
    - `headers` object[], nullable: Headers , (default is null)
      - `name` string, required: Header name
      - `value` string, required: Header value
    - `timeout` integer, nullable: Callback timeout (default is null, system timeout will be used)
    - `email` string: Email for events delivery
    - `mode` 'json' | 'text': email contents type: json or text (default is json)
    - `rate_limit` object, nullable: Rate limit (applicable for 'email' type of callback only)
      - `number` integer, required: Number of events allowed in the period
      - `period` integer, required: Period in seconds
    - `application` 'sms-autoresponder' | 'google-analytics': Application name (applicable for 'application' type of callback only)
    - `parameters` object: Application invocation parameters (applicable for 'application' type of callback only)

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation failed
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com.md) · [All operations](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/llms.txt) · [OpenAPI document](https://skmtc.dev/phone/apis/phoenix-api-by-phone-com/revisions/38779485faaf?raw)
