Skip to main content
Skip to main content

updateTags - Product Module Reference

Beta

This 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

dataUpdateProductTagDTO[]Required
The product tags to be updated, each having the attributes that should be updated in a product tag.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<ProductTagDTO[]>Required
The list of updated product tags.
Was this section helpful?