createCollectionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createCollectionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more collection.
Input#
CreateProductCollectionDTO[]
CreateProductCollectionDTO[]
CreateProductCollectionDTO[]
CreateProductCollectionDTO[]title
stringThe product collection's title.
title
stringhandle
stringOptionalThe product collection's handle. If not provided, the value of this attribute is set to the slug version of the title.
handle
stringOptionalproduct_ids
string[]OptionalThe products to associate with the collection.
product_ids
string[]OptionalHolds custom data in key-value pairs.
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?