AdminProductTagsResource
This class is used to send requests to Admin Product Tag API Routes. All its method
are available in the JS Client under the medusa.admin.productTags
property.
All methods in this class require user authentication.
Product tags are string values created when you create or update a product with a new tag. Products can have more than one tag, and products can share tags. This allows admins to associate products to similar tags that can be used to filter products.
Methods
list
Retrieve a list of product tags. The product tags can be filtered by fields such as q
or value
passed in the query
parameter. The product tags can also be sorted or paginated.
Example
To list product tags:
By default, only the first 10
records are retrieved. You can control pagination by specifying the limit
and offset
properties:
Parameters
Filters and pagination configurations to apply on the retrieved product tags.
Returns
ResponsePromise
ResponsePromise<AdminProductTagsListRes>RequiredResolves to the list of product tags with pagination fields.
ResponsePromise
ResponsePromise<AdminProductTagsListRes>Required