SetAllWebhookSettingsRequest
Fields
- newUrlstring
The new signed destination to register.
Omitted -> the stored
newUrlis left alone. A url -> registered, and at least one entry innewUrlEventsmust accompany it in the SAME call. Explicitnull-> the destination is cleared, which is refused with400when it would leave the organization with no webhook destination at all (nolegacyUrlon file). PrefernewUrlEnabled: falseto stop delivery: pausing keeps the registration, clearing throws it away. - newUrlEventsstring[]
Which events
newUrlreceives.Omitted -> the stored subscription list is left alone. PRESENT -> it REPLACES the stored list wholesale, so
[]genuinely means "no events" and this is not an append. Must contain at least one entry whenevernewUrlis sent as a url.Possible values: [order.created, order.status.updated, order.rejected, order.cancelled, order.delivery.updated, store.status.changed, report.completed, menu.publication.completed] - newUrlEnabledboolean
Pause switch for
newUrlonly. Omitted -> left at its stored value. - legacyUrlEnabledboolean
Pause switch for
legacyUrlonly (ONE-2877). UnlikelegacyUrlitself — which has no field on this request at all and is rejected with400if sent — this one IS settable: it is the only way a partner can turn the legacy feed off themselves.falsestops legacy delivery immediately; setting it back totrueresumes it.OMITTING IT LEAVES LEGACY DELIVERY EXACTLY AS IT IS (ONE-2903). It used to be read as
false, which meant registering anewUrlwithout naming this field switched a partner's live legacy order feed off, with a200and no warning. That is fixed; you never need to restate this field to keep legacy running.