updateOptions - Product Module Reference
BetaThis documentation provides a reference to the updateOptions method. This belongs to the Product Module.
This method is used to update existing product options.
Example
import {
initialize as initializeProductModule,
} from "@medusajs/product"
async function updateProductOption (id: string, title: string) {
const productModule = await initializeProductModule()
const productOptions = await productModule.updateOptions([
{
id,
title
}
])
// do something with the product options or return them
}
Parameters
The product options to be updated, each holding the attributes that should be updated in the product option.
Returns
The list of updated product options.
Was this section helpful?