Update webhook endpoint
Use this when you want to patch one or more fields of an existing webhook endpoint (url, description, enabled, subscribedEvents).
Accepts a partial update; only the fields present in the body are modified. Cannot rotate the signing secret here — use the dedicated rotate-secret endpoint. Does NOT return the signing secret.
Authorizations
Marea API key. mk_dev_* keys are developer-scoped (bootstrap, list users, register webhook). mk_user_* keys are user-scoped (manage that one user's storefronts/products). Scopes: catalog:read, catalog:write, storefront:publish, me:verify, me:resendVerification, developer:bootstrap, developer:read, developer:issueUserKey, developer:webhooks.
Headers
Optional client-supplied key. Replays of the same key within 24h return the original response. Recommended for POSTs that mutate billing/inventory.
200"idem_b2a9f5b9-3e0c-4a5e-b3c2-7a4ce85a6b21"
BCP-47 locale tag for localized error messages (es, en, pt). Defaults to es.
"es-MX"
Path Parameters
Body
Request body.
Body for POST /v1/webhook_endpoints/{endpointId} — partial update. At least one field must be present.
20482561Enum of webhook event types a WebhookEndpoint may subscribe to. Developer-scope endpoints can subscribe to any value; merchant-scope endpoints are restricted to order.* (PRD-14).
user.verified, user.cancelled, order.created, order.status_updated, order.paid Response
Success.
PRD-14 — first-class webhook endpoint. Returned (without signingSecret) by list/get/update endpoints.
Server-generated id (mk_we_ + 16-char lowercase hex).
^mk_we_[0-9a-f]{16}$"mk_we_0123456789abcdef"
Endpoint owner type. developer endpoints receive lifecycle events for users you bootstrapped plus order events from their storefronts; merchant endpoints receive order events for one storefront.
developer, merchant Receiver URL. HTTPS only. Max 2048 chars. SSRF blocklist applies (loopback, private ranges, metadata hosts, .internal, etc).
256When false, the dispatcher skips this endpoint without retiring it.
At least one event subscription is required.
1Enum of webhook event types a WebhookEndpoint may subscribe to. Developer-scope endpoints can subscribe to any value; merchant-scope endpoints are restricted to order.* (PRD-14).
user.verified, user.cancelled, order.created, order.status_updated, order.paid Bumped by one each time the secret is rotated.
x >= 1success, failure, null x >= 0