- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateRegionsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateRegionsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates regions matching the specified filters. It's used by the Update Region Admin API Route.
You can use this workflow within your own customizations or custom workflows, allowing you to update regions in your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdateRegionsWorkflowInput
UpdateRegionsWorkflowInput
UpdateRegionsWorkflowInput
UpdateRegionsWorkflowInputselector
FilterableRegionPropsThe filters to apply on the retrieved regions.
selector
FilterableRegionPropsupdate
UpdateRegionDTO & object
update
UpdateRegionDTO & objectOutput#
UpdateRegionsWorkflowOutput
UpdateRegionsWorkflowOutput
UpdateRegionsWorkflowOutput
UpdateRegionsWorkflowOutputid
stringThe ID of the region.
id
stringname
stringThe name of the region.
name
stringcurrency_code
stringThe currency code of the region.
currency_code
stringautomatic_taxes
booleanSetting to indicate whether taxes need to be applied automatically
automatic_taxes
booleancountries
RegionCountryDTO[]The countries of the region.
countries
RegionCountryDTO[]payment_providers
PaymentProviderDTO[]Payment providers available in the region
payment_providers
PaymentProviderDTO[]created_at
stringThe date the region was created.
created_at
stringupdated_at
stringThe date the region was updated.
updated_at
stringmetadata
Record<string, any>OptionalHolds custom data in key-value pairs.
metadata
Record<string, any>OptionalWas this page helpful?