Webhooks
Update a webhook endpoint
PATCH
Change the address, the description, or the events, or turn the endpoint off and on. Turning it back on clears its failure count. Events from while it was off are not sent again. Needs a key with the admin role.
header
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
webhookId*stringapplication/json- body
url?stringFormat
uriLength
length <= 2048description?|Length
length <= 120events?array<>The events to receive. New event types are never added to an endpoint on their own.
Items
1 <= itemsenabled?booleanThe endpoint after the change.
application/json- response
data?curl -X PATCH 'https://api.eksis.io/v1/webhooks/string' \ -H 'Authorization: Bearer eksis_sk_...' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "id": "string", "url": "http://example.com", "description": "string", "events": [ "post.target.published" ], "status": "active", "disabledReason": "manual", "secretPrefix": "string", "consecutiveFailures": 0, "lastSuccessAt": "2019-08-24T14:15:22Z", "lastFailureAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" }}