Api referenceEndpointsWebhooks
Change a webhook endpoint
PATCH
Absent fields stay as they are. enabled: false disables the endpoint and parks its
pending deliveries; enabled: true re-activates it (also after an automatic disable)
and clears its failure state.
tenantKeyheader
AuthorizationBearer <token>Tenant API key, ohs_sk_ + 43 base62 characters.
webhook_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/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"}