This endpoint is used to update an existing webhook endpoint.
https://api.claimsmanagertest.crawco.co.uk/webhooks/{webhookid}
Parameter Name | Description | Type | Example Data |
---|---|---|---|
webhookId
|
The unique id of the webhook to be updated. | numeric | 1 |
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.
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"
}'
200 OK