Skip to content
OpenTrain AIOpenTrain AIOpenTrain AIDocs

Ask OpenTrain

Answers from the documentation, with sources.

What would you like to do with OpenTrain?

AI answers can be mistaken. Check the linked sources. Don’t include private account information.

Open app

DEVELOPER DOCUMENTATION

Update Webhook Endpoint

Change a webhook endpoint's URL, event types, or status. Setting status to ACTIVE re-enables an auto-disabled endpoint and resets its failure counter.

PATCH/api/partner/v1/webhook-endpoints/{endpointId}

Updates a webhook endpoint. All body fields are optional — send only what you want to change. Setting status to ACTIVE re-enables an auto-disabled endpoint and resets its failure counter.

Updating never changes the signing secret, and the secret is never returned. To rotate it, delete the endpoint and create a new one.

Requirements: webhooks:manage scope.

endpointIdstringpathrequired

The webhook endpoint ID.

urlstringbody

New delivery URL. Must be HTTPS (http is allowed for localhost only).

eventTypesstring[]body

Replacement list of event types — at least one.

statusstringbody

ACTIVE or DISABLED. ACTIVE re-enables an auto-disabled endpoint and resets consecutiveFailures to 0; DISABLED pauses delivery.

webhookEndpointobject

The updated endpoint: {id, url, eventTypes, status, createdAt, consecutiveFailures, disabledAt, disabledReason} — same shape as GET /webhook-endpoints/{endpointId}.

StatuscodeMeaning
400BAD_REQUESTBody not valid JSON, invalid url, empty/unknown eventTypes, or invalid status
401UNAUTHORIZEDMissing, invalid, or revoked token
403FORBIDDENToken lacks webhooks:manage
404NOT_FOUNDNo endpoint with this ID on this install