Update a Webhook

PUT {{cryptr_service_url}}/api/v2/webhooks/:id?name=User provision fail&event_codes[]=dir_sync.user.provision.fail&target_url=http://localhost:8000

Update an existingย Webhookย for your Organization. You can only update the eventcodes and the targeturl. For example, if your previous target_url has changed since the webhook was created.

RETURNS

Returns the updatedย Webhookย for a valid organization/environment pair. If not found, aย 404 Not Foundย response is displayed.

Request Params

KeyDatatypeRequiredDescription
namestringThe name of your webhook you can set it to anything you want
event_codes[]stringIdentifiers used to specify types of events within a webhook.
target_urlstringRefers to the specific URL where you want to receive event information.

RESPONSES

status: OK

{"__environment__":"sandbox","__type__":"Webhook","active":true,"event_codes":["dir_sync.user.provision.fail"],"id":"webhook_2jhL3MOOQFRuouWlYhmea6yBEwC","inserted_at":"2024-07-24T15:16:01","name":"User provision fail","signature_key":"G8DXTIOobwGxhkFf2X5VidlQhJ8hoVAONc3Ezi21KEZKe2mikvF1-YMx2pQ3RKIsKmHOWWVv5ZTWahxxQuKM72vCMvz84jBeAhfYQsjMqLGA3Tg9nlgBUfa3BOEaUNZH","target_url":"http://localhost:8000","updated_at":"2024-07-24T15:31:01"}