- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
updateCustomerGroupsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the updateCustomerGroupsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow updates one or more customer groups. It's used by the Update Customer Group Admin API Route.
You can use this workflow within your customizations or your own custom workflows, allowing you to update customer groups within your custom flows.
Source CodeExamples#
Steps#
Workflow Hook
Step conditioned by when
Input#
UpdateCustomerGroupsWorkflowInput
UpdateCustomerGroupsWorkflowInputThe data to update customer groups.
UpdateCustomerGroupsWorkflowInput
UpdateCustomerGroupsWorkflowInputselector
FilterableCustomerGroupPropsThe filter to select the customer groups to update.
selector
FilterableCustomerGroupPropsThe data to update in the customer group.
Output#
UpdateCustomerGroupsWorkflowOutput
UpdateCustomerGroupsWorkflowOutputThe updated customer groups.
UpdateCustomerGroupsWorkflowOutput
UpdateCustomerGroupsWorkflowOutputid
stringThe ID of the customer group.
id
stringname
stringThe name of the customer group.
name
stringThe customers of the customer group.
metadata
Record<string, unknown>OptionalHolds custom data in key-value pairs.
metadata
Record<string, unknown>Optionalcreated_by
null | stringOptionalWho created the customer group.
created_by
null | stringOptionaldeleted_at
null | string | DateOptionalThe deletion date of the customer group.
deleted_at
null | string | DateOptionalcreated_at
string | DateOptionalThe creation date of the customer group.
created_at
string | DateOptionalupdated_at
string | DateOptionalThe update date of the customer group.
updated_at
string | DateOptionalWas this page helpful?