Edit a webhook
PATCH/accounts/{account_id}/realtime/kit/{app_id}/webhooks/{webhook_id}
Edits the webhook details for the given webhook ID.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Path Parameters
Body ParametersJSON
Edit a webhook
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/realtime/kit/$APP_ID/webhooks/$WEBHOOK_ID \
-X PATCH \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
-d '{
"url": "https://webhook.site/b23a5bbd-c7b0-4ced-a9e2-78ae7889897e"
}'{
"data": {
"created_at": "2023-07-15T07:08:26.634Z",
"enabled": true,
"events": [
"meeting.started"
],
"id": "b6e0fd13-d7f4-4122-9ad5-7994b35d24b8",
"name": "My Webhook",
"updated_at": "2023-07-15T07:08:26.634Z",
"url": "https://example.com/webhook"
},
"success": true
}{
"error": {
"code": 400,
"message": "BAD_REQUEST: \"id\" must be a valid GUID"
},
"success": false
}"{\n \"message\": \"Unauthorized\"\n}\n"Returns Examples
{
"data": {
"created_at": "2023-07-15T07:08:26.634Z",
"enabled": true,
"events": [
"meeting.started"
],
"id": "b6e0fd13-d7f4-4122-9ad5-7994b35d24b8",
"name": "My Webhook",
"updated_at": "2023-07-15T07:08:26.634Z",
"url": "https://example.com/webhook"
},
"success": true
}{
"error": {
"code": 400,
"message": "BAD_REQUEST: \"id\" must be a valid GUID"
},
"success": false
}"{\n \"message\": \"Unauthorized\"\n}\n"