cURL
curl --request PATCH \ --url http://localhost:3000/api/canary/products/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "metadata": { "sku": "PROD-001" } } '
{ "statusCode": 400, "message": [ "Invalid input data" ], "error": "Bad Request" }
Updates a product’s name, description, or metadata
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The unique identifier of the product
Product update details
Optional custom metadata
{ "sku": "PROD-001" }
The name of the product
A description of the product
The price of the product in the smallest currency unit
Whether the product is active
Product updated successfully