Update a product by product ID
Use this endpoint to update a single product by its productId
.
You can update the product’s details, such as its name, category details, product images, attributes, and collections. However, you can’t update the productId.
The new data completely replaces the existing data.
If you don’t have the productId
, use one of the corresponding endpoints:
Authorizations
This is the authorization token used to authenticate the request. You must pass the access token generated from the system app. For more information, see the Making your first API request section.
Headers
A header retrieved from your Copilot Account Details that's used by the API to identify the tenant making the request. Tenant ID must be included in the authentication header for API requests to access any of fabric’s endpoints.
Unique request ID
Path Parameters
The UUID of the product.
Query Parameters
The language code, which is a combination of language (ISO 639 format) and country (ISO 3166 format).
The default value is en-US.
Body
A sample request to update a product.
The name of the product.
The list of product images.
The name of the attribute and its value.
The time of product creation, in UTC format.
The time of last update to product, in UTC format.
The name of the category. This value is overridden if the categories are populated.
A 24-character system-generated ID of the category.
The category details, including their paths from the leaf category to the root category.
The details of the collection.
Represents the item
product type.
ITEM
The details of the item variants.
Response
The details of a product based on the product type.
The name of the product.
The list of product images.
The name of the attribute and its value.
The time of product creation, in UTC format.
The time of last update to product, in UTC format.
Product SKU
A 24-character system-generated ID.
A unique identifier of an item, a variant or a bundle.
The name of the category.
A 24-character system-generated category ID.
The list of categories, including their paths from the leaf category to the root category.
The details of the collection used to display products on the storefront.
Represents the item
product type.
ITEM
The details of item variants.
Was this page helpful?