Update a webhook endpoint
Needs a key withwebhooks:write
Changes an endpoint's URL, description or events, or switches it on or off. Its secret stays.
Requires scope webhooks:write.
apiKeyx-api-key<token>An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.
endpointId*string1 <= length <= 128application/json- body
What to change; anything left out stays.
description?stringA note for your team: what it's for.
length <= 200enabled?booleanSwitch deliveries on or off. Switching on an endpoint that was switched off for failing clears its failures.
events?array<>The events it receives (at least one).
1 <= items <= 13url?stringWhere deliveries are POSTed: an https:// URL on the public internet (private, loopback and link-local addresses are refused).
1 <= length <= 2048The endpoint.
application/json- response
A webhook endpoint. Its signing secret is never listed: it's shown once, when the endpoint is created or its secret is rotated.
createdAt*stringdate-timecreatedByUserId*|Who added it; null when an API key did, or the person has left.
description*stringdisabledReason*|Why it was switched off after failing, until it's switched on again.
enabled*booleanevents*array<>id*stringupdatedAt*stringdate-timeurl*stringcurl -X PATCH 'https://api.remagica.com/api/v1/webhook-endpoints/whe_4f5a8b9c0d1e2f3a' \ -H 'Content-Type: application/json' \ -d '{}'{ "createdAt": "2026-10-21T12:00:00.000Z", "createdByUserId": "f3656abb-5b3d-4f60-8e2a-1d9c6b4f7e05", "description": "Product shots for the autumn campaign.", "disabledReason": "string", "enabled": true, "events": [ "generation.succeeded" ], "id": "whe_4f5a8b9c0d1e2f3a", "updatedAt": "2026-10-21T12:00:00.000Z", "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png"}