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