Update an endpoint
PATCH/v1/webhooks/{id}Key scope write
Updates the properties sent and leaves the others unchanged. Setting status to active re-enables an endpoint that was disabled, by you or after repeated failures, and resets its failure counter.
Needs a key with the write scope. Authentication
Path parameters
idstringRequiredId of the endpoint:
whe_plus 22 base62 characters.
Request body
urlURLThe URL to deliver to, up to 2,048 characters. It must use HTTPS and resolve to a public address.
descriptionstringA note on what the endpoint is for, up to 500 characters. Null clears it.
event_typesarray of enumsThe event types to deliver, up to 50. The array replaces the stored one; an empty array subscribes the endpoint to every event.
One of
moderation.completedmoderation.failedqueue_item.createdqueue_item.allowedqueue_item.rejectedqueue_item.actionedqueue_item.reopenedauthor.blockedauthor.suspendedauthor.enabledauthor.trust_level_changedaction.executedstatusenumdisabledstops deliveries: no new ones are created and those still pending end asfailed.activeresumes them and setsconsecutive_failuresto 0.One of
activedisabled
Returns
The updated endpoint, without secret.
Errors
- 404
not_foundThe key's project has no webhook endpoint with this id.
- 422
validation_errorurlis not a valid HTTPS URL or resolves to a private address, an event type is unknown,statusis notactiveordisabled, or the body has an unknown key.
Every endpoint can also answer the errors any request can meet: a missing key, a rate limit, a malformed body. Errors
Something missing or unclear on this page? Write to support@useinfrared.com.