createProductOptionsStep - Medusa Core Workflows Reference
This documentation provides a reference to the createProductOptionsStep
. It belongs to the @medusajs/medusa/core-flows
package.
This step creates one or more product options.
Example#
Input#
CreateProductOptionDTO[]
CreateProductOptionDTO[]
CreateProductOptionDTO[]
CreateProductOptionDTO[]title
stringThe product option's title.
title
stringvalues
string[]The product option values.
values
string[]product_id
stringOptionalThe ID of the associated product.
product_id
stringOptionalOutput#
ProductOptionDTO[]
ProductOptionDTO[]
ProductOptionDTO[]
ProductOptionDTO[]id
stringThe ID of the product option.
id
stringtitle
stringThe title of the product option.
title
stringThe associated product option values.
created_at
string | DateWhen the product option was created.
created_at
string | Dateupdated_at
string | DateWhen the product option was updated.
updated_at
string | DateThe associated product.
product_id
null | stringOptionalThe associated product id.
product_id
null | stringOptionalHolds custom data in key-value pairs.
deleted_at
string | DateOptionalWhen the product option was deleted.
deleted_at
string | DateOptionalWas this page helpful?