---
title: "Update cXML webhook"
method: PATCH
path: "/api/fabric/resources/cxml_webhooks/{id}"
tags: ["cXML Webhook"]
---

# Update cXML webhook

`PATCH /api/fabric/resources/cxml_webhooks/{id}`

Updates an cXML Webhook by ID

#### Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_, _Messaging_, _Fax_, or _Video_.

[Learn more about API scopes](/docs/platform/your-signalwire-api-space).

## Path parameters

- `id` string, uuid, required — Universal Unique Identifier.

## Request body

- CXMLWebhookUpdateRequest
  - `name` string — Name of the CXML Webhook.
  - `used_for` 'calling' | 'messaging' — Sets the handler to handle incoming `calls` or `messages`.
  - `primary_request_url` string, uri — Primary request url of the CXML Webhook.
  - `primary_request_method` 'GET' | 'POST' — The method type to use for the URL
  - `fallback_request_url` string, uri — Fallback request url of the CXML Webhook.
  - `fallback_request_method` 'GET' | 'POST' — The method type to use for the URL
  - `status_callback_url` string, uri — Status callback url of the CXML Webhook.
  - `status_callback_method` 'GET' | 'POST' — The method type to use for the URL

## Response `200`

The request has succeeded.

- CXMLWebhookResponse
  - `id` string, uuid, required — Universal Unique Identifier.
  - `project_id` string, uuid, required — Universal Unique Identifier.
  - `display_name` string, required — Display name of the CXMLWebhook Fabric Resource
  - `type` 'cxml_webhook', required — Type of the Fabric Resource
  - `created_at` string, date-time, required — Date and time when the resource was created.
  - `updated_at` string, date-time, required — Date and time when the resource was updated.
  - `cxml_webhook` CXMLWebhook, required
    - `id` string, uuid, required — Universal Unique Identifier.
    - `name` string, required — Name of the CXML Webhook.
    - `used_for` 'calling' | 'messaging', required — Sets the handler to handle incoming `calls` or `messages`.
    - `primary_request_url` string, uri, required — Primary request url of the CXML Webhook.
    - `primary_request_method` 'GET' | 'POST', required — The method type to use for the URL
    - `fallback_request_url` string, uri, nullable, required — Fallback request url of the CXML Webhook.
    - `fallback_request_method` 'GET' | 'POST', required — The method type to use for the URL
    - `status_callback_url` string, uri, nullable, required — Status callback url of the CXML Webhook.
    - `status_callback_method` 'GET' | 'POST', required — The method type to use for the URL

## Other responses

- `401` — Access is unauthorized.
- `404` — The server cannot find the requested resource.
- `422` — The request contains invalid parameters. See errors for details.
- `500` — An internal server error occurred.

---

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