Skip to Content
Adaptyv Bio Docs
webhooks

Modify a webhook registration, including rotating or clearing its secret.

PATCH
/api/v1/webhooks/{webhook_id}

Authorization

bearer_auth

Path Parameters

webhook_id*string

Registration id to modify

Formatuuid

Request Body

application/json
  1. body

Request to modify an existing organization-level webhook.

Every field is optional; omitted fields are left unchanged. secret uses a nested option so the three cases stay distinguishable in one payload: absent = leave as-is, null = clear it (fall back to the deployment-wide secret), a string = replace it. Rotation is therefore a single PATCH.

Example

{"secret": "a-new-32-plus-character-shared-secret", "enabled": true}
enabled?|

Pause or resume deliveries without deleting the registration.

headers?unknown

Replacement header map.

secret?|

Replacement secret, or an explicit null to clear it.

Length32 <= length
url?|

Replacement HTTPS URL.

Response Body

Updated registration

application/json
  1. response

An organization-level webhook registration as returned to the customer.

created_at*string

Creation timestamp.

Formatdate-time
enabled*boolean

When false, this registration receives no deliveries.

headers*unknown

Extra HTTP headers sent with each delivery.

id*string

Registration identifier.

Formatuuid
secret_set*boolean

Whether a signing secret is configured for this registration.

The secret itself is never returned by any endpoint. false means deliveries fall back to Adaptyv's deployment-wide secret.

updated_at*string

Last-modification timestamp.

Formatdate-time
url*string

HTTPS URL deliveries are POSTed to.

Example Request
curl -X PATCH 'https://devs.adaptyvbio.com/api/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "2019-08-24T14:15:22Z",  "enabled": true,  "headers": null,  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "secret_set": true,  "updated_at": "2019-08-24T14:15:22Z",  "url": "string"}