Set product category
Assigns or clears the category associated with a product.
PATCH
/api/products/{productId}/categoryAssigns or clears the category associated with a product.
Path Parameters
productId*string
Product identifier.
Example
"prod_123"Request Body
application/json
Request payload for Set product category.
categoryId*|
Category identifier to assign, or null to clear the category.
Example
"cat_123"[key: string]?never
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json