Update Webhook

This endpoint is used to update an existing webhook endpoint.

patch
https://api.claimsmanagertest.crawco.co.uk/webhooks/{webhookid}

Path parameters

Parameters marked are required.
Parameter Name Description Type Example Data
webhookId The unique id of the webhook to be updated. numeric 1

Request body parameters

Parameter Name Description Type Example Data
url The url that the webhook payload should be sent to. string($url) https://example.com/webhooks
headerName The name of any additional http header added to the http request. string X-API-Key
headerValue The value of any additional http header added to the http request. string abcdef12345
isActive Default value is true. When set to false, all subscriptions under this webhook are disabled. boolean true

Only fields supplied in the request body will be updated, any fields omitted will not be updated.

Example request

curl --location --request PATCH 'https://api.claimsmanagertest.crawco.co.uk/webhooks/1' \
--header 'Authorization: Bearer {access token} \
--header 'Content-Type: application/json' \
--data-raw '{
        "url": "https://newexample.com/webhooks"
}'

Example response

200 OK