Api referenceEndpointsAdmin
Change a webhook endpoint (instance admin, one tenant)
PATCH
PATCH /v1/webhooks/{webhook_id} (updateWebhook) for the tenant of tenant_id, run with an
instance admin key: the same body, parameters and answer as the tenant's own key
gets; a Location points at the admin route. Recorded in the caller's audit log
and, actor admin, in the tenant's.
See docs/admin-api.md.
tenantKeyheader
AuthorizationBearer <token>Tenant API key, ohs_sk_ + 43 base62 characters.
tenant_id*stringThe id of a tenant; any other value is a 404.
Format
uuidwebhook_id*stringFormat
uuidapplication/json- body
url?stringFormat
uriLength
length <= 2048description?stringLength
length <= 255event_types?array<>enabled?booleanThe endpoint after the change.
application/json- response
id*stringFormat
uuidurl*stringdescription*stringevent_types*array<>status*stringAn endpoint that has accepted nothing for 5 days is disabled when one more delivery runs out of attempts.
Value in
"active""disabled"disabled_reason*string|nullfailing_since*|Start of the current run of failed attempts; null after a success.
Format
date-timelast_success_at*|Format
date-timecreated_at*stringFormat
date-timeupdated_at*stringFormat
date-timecurl -X PATCH 'http://localhost:8080/v1/admin/tenants/497f6eca-6276-4993-bfeb-53cbbbba6f08/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Authorization: Bearer ohs_sk_...' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "string", "description": "string", "event_types": [ "data.written" ], "status": "active", "disabled_reason": "string", "failing_since": "2019-08-24T14:15:22Z", "last_success_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}