- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateServiceZonesWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateServiceZonesWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates one or more service zones. It's used by the Update Service Zones Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to update service zones within your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdateServiceZonesWorkflowInput
UpdateServiceZonesWorkflowInput
UpdateServiceZonesWorkflowInput
UpdateServiceZonesWorkflowInputselector
FilterableServiceZonePropsThe filters to select the service zones to update.
selector
FilterableServiceZonePropsupdate
UpdateServiceZoneThe data to update in a service zone.
update
UpdateServiceZoneOutput#
UpdateServiceZonesWorkflowOutput
UpdateServiceZonesWorkflowOutputThe updated service zones.
UpdateServiceZonesWorkflowOutput
UpdateServiceZonesWorkflowOutputid
stringThe ID of the service zone.
id
stringname
stringThe name of the service zone.
name
stringmetadata
null | Record<string, unknown>Holds custom data in key-value pairs.
metadata
null | Record<string, unknown>fulfillment_set
FulfillmentSetDTOThe fulfillment set assoiated with the service zone.
fulfillment_set
FulfillmentSetDTOfulfillment_set_id
stringThe fulfillment set id of the service zone.
fulfillment_set_id
stringgeo_zones
GeoZoneDTO[]The geo zones assoiated with the service zone.
geo_zones
GeoZoneDTO[]shipping_options
ShippingOptionDTO[]The shipping options assoiated with the service zone.
shipping_options
ShippingOptionDTO[]created_at
DateThe creation date of the service zone.
created_at
Dateupdated_at
DateThe update date of the service zone.
updated_at
Datedeleted_at
null | DateThe deletion date of the service zone.
deleted_at
null | DateWas this page helpful?