Modify a webhook registration, including rotating or clearing its secret.
bearer_authwebhook_id*stringRegistration id to modify
uuidapplication/json- 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?unknownReplacement header map.
secret?|Replacement secret, or an explicit null to clear it.
32 <= lengthurl?|Replacement HTTPS URL.
Updated registration
application/json- response
An organization-level webhook registration as returned to the customer.
created_at*stringCreation timestamp.
date-timeenabled*booleanWhen false, this registration receives no deliveries.
headers*unknownExtra HTTP headers sent with each delivery.
id*stringRegistration identifier.
uuidsecret_set*booleanWhether 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*stringLast-modification timestamp.
date-timeurl*stringHTTPS URL deliveries are POSTed to.
curl -X PATCH 'https://devs.adaptyvbio.com/api/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}