Openi DeveloperDeveloper

Change URL, events or enable/disable an endpoint

PATCH
/v1/webhooks/{webhook_id}
AuthorizationBearer <token>

In: header

Path Parameters

webhook_id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

url?string
Formaturi
Lengthlength <= 2048
description?string
Lengthlength <= 500
event_types?array<>|null
enabled?boolean

Disabled endpoints keep receiving events in their queue; delivery resumes when re-enabled.

Response Body

application/json

application/problem+json

curl -X PATCH "https://example.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "url": "string",  "description": "string",  "event_types": [    "string"  ],  "enabled": true,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}