Skip to main content

Update webhook

PATCH 

/webhooks/:webhook_id

Updates a webhook to replace webhook fields with new values. Supports only the replace operation. Pass a json_patch object with replace operation and path, which is /url for a URL or /event_types for events. The value is either the URL or a list of events.

Request

Path Parameters

    webhook_id stringrequired

    Possible values: <= 50 characters, Value must match regular expression ^[a-zA-Z0-9]+$

    The ID of the webhook to update.

Body

    any

Responses

A successful request returns the HTTP 200 OK status code and a JSON response body that shows webhook details.

Schema

    id string

    The ID of the webhook.

    url urirequired

    The URL that is configured to listen on localhost for incoming POST notification messages that contain event information.

    Possible values: <= 2048 characters

    event_types object[]required

    An array of events to which to subscribe your webhook. To subscribe to all events, including events as they are added, specify the asterisk wild card. To replace the event_types array, specify the asterisk wild card. To list all supported events, list available events.

    Possible values: <= 500

    links object[]

    An array of request-related HATEOAS links.

Loading...