Explicitly replace the event selection
All field references · Webhooks
PATCH /v1/webhook-endpoints/{id}/subscriptions
Replaces the complete event selection with a revision check and idempotency. New data families require the matching read scope on a live key. Revoking it also stops pending messages. An empty list stops business events; a requested ping remains possible. Requires a live API key.
Required scopes: "webhooks:manage".
#Parameters
#path: id
Required. Identifier of your own resource.
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | string | Whole value | Not allowed | format: "uuid". |
#Request body
Request body required.
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| idempotency_key | string | Required when parent is present | Not allowed | New client UUID per command; after unclear outcomes retry the same UUID and arguments. format: "uuid". |
| expected_revision | integer | Required when parent is present | Not allowed | Latest-read revision; stale revisions rejected. minimum: 0. maximum: 2147483646. |
| event_types | array | Required when parent is present | Not allowed | Complete replacement of the subscribed event names; an empty list disables business events. maxItems: 50. |
| event_types[] | string | Every array item | Not allowed | enum: ["order.received","order.production_started","order.production_completed","order.production_failed","order.cancelled","order_item.completed","order.updated","order.update_rejected","order.cancel_rejected","order.shipped","ping","delivery.succeeded","delivery.failed","delivery.paused","inventory.changed","inventory.positions_changed","article.updated","inbound.announced","inbound.updated","inbound.eta_changed","inbound.arrived","inbound.received","inbound.closed","inbound.cancelled","inbound.availability_changed","return.announced","return.updated","return.received","return.inspected","return.decision_required","return.disposition_completed","return.closed","dispatch.confirmed","dispatch.production_completed","shipment.tracking_changed","order.partially_fulfilled","order.fulfilled","order.handed_over","order.message_received","order.production_held","order.production_resumed","order.partner_cancelled","order.partner_handover_incomplete","order.partner_handover_completed","fulfillment_order.received","fulfillment_order.updated","fulfillment_order.cancelled","fulfillment_order.change_requested","fulfillment_order.message_received","structure.activated","kit.assembled","kit.disassembled","production.material_consumed","production.output_recorded","production.scrap_recorded"]. |
#Response 200
200: Success
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. Additional properties are not allowed. |
| data.endpoint_id | string | Required when parent is present | Not allowed | Identifier of the webhook endpoint owned by this connection. format: "uuid". |
| data.revision | integer | Required when parent is present | Not allowed | Revision token; reuse unchanged for the next change. minimum: 0. |
| data.event_types | array | Required when parent is present | Not allowed | Complete replacement of the subscribed event names; an empty list disables business events. maxItems: 50. |
| data.event_types[] | string | Every array item | Not allowed | enum: ["order.received","order.production_started","order.production_completed","order.production_failed","order.cancelled","order_item.completed","order.updated","order.update_rejected","order.cancel_rejected","order.shipped","ping","delivery.succeeded","delivery.failed","delivery.paused","inventory.changed","inventory.positions_changed","article.updated","inbound.announced","inbound.updated","inbound.eta_changed","inbound.arrived","inbound.received","inbound.closed","inbound.cancelled","inbound.availability_changed","return.announced","return.updated","return.received","return.inspected","return.decision_required","return.disposition_completed","return.closed","dispatch.confirmed","dispatch.production_completed","shipment.tracking_changed","order.partially_fulfilled","order.fulfilled","order.handed_over","order.message_received","order.production_held","order.production_resumed","order.partner_cancelled","order.partner_handover_incomplete","order.partner_handover_completed","fulfillment_order.received","fulfillment_order.updated","fulfillment_order.cancelled","fulfillment_order.change_requested","fulfillment_order.message_received","structure.activated","kit.assembled","kit.disassembled","production.material_consumed","production.output_recorded","production.scrap_recorded"]. |
#Response 401, 403, 404, 409, 422, 429, 500, 503
401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 404: Not found. Also applies to IDs that belong to another organization — we deliberately do not distinguish between "does not exist" and "does not belong to you". 409: The same ID already exists with different content. It is never overwritten. 422: Content validation failed. The response lists all affected locations at once. 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.
Content type: application/json
| Field | Type | Presence | null | Meaning, limits and examples |
|---|---|---|---|---|
| $ (whole value) | object | Whole value | Not allowed | — |
| error | object | Required when parent is present | Not allowed | Machine-readable error code; use it to select the documented recovery path. |
| error.code | string | Required when parent is present | Not allowed | Machine-readable, permanently stable error code. Program against it, not against message. |
| error.message | string | Required when parent is present | Not allowed | Explanation for humans. May change at any time. |
| error.field | string | Optional | Not allowed | Affected location in the request, if it can be determined. |
| error.doc_url | string | Required when parent is present | Not allowed | Documentation link explaining this API error. format: "uri". |
Machine-readable version of this page: https://www.meykt.com/developers/fields-configure-webhook-subscriptions.md