updateCollectionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the updateCollectionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step updates collections matching the specified filters.
Example#
Input#
UpdateCollectionsStepInput
UpdateCollectionsStepInputThe data to identify and update the product collections.
UpdateCollectionsStepInput
UpdateCollectionsStepInputselector
FilterableProductCollectionPropsThe filters to select the collections to update.
selector
FilterableProductCollectionPropsThe data to update the collections with.
Output#
ProductCollectionDTO[]
ProductCollectionDTO[]
ProductCollectionDTO[]
ProductCollectionDTO[]id
stringThe ID of the product collection.
id
stringtitle
stringThe title of the product collection.
title
stringhandle
stringThe handle of the product collection. The handle can be used to create slug URL paths.
handle
stringcreated_at
string | DateWhen the product collection was created.
created_at
string | Dateupdated_at
string | DateWhen the product collection was updated.
updated_at
string | DateHolds custom data in key-value pairs.
deleted_at
string | DateOptionalWhen the product collection was deleted.
deleted_at
string | DateOptionalThe associated products.
Was this page helpful?