docs

Update product

Updates product information. Can update product data fields, default price, and image. - The defaultPrice field should be the ID of the Price object that is the default price for this product - The image field should be a URL string (use the /upload-url endpoint to get a one-time upload URL first)

PATCH
/products/{id}
  Updates product information.
  
  Can update product data fields, default price, and image.
  - The defaultPrice field should be the ID of the Price object that is the default price for this product
  - The image field should be a URL string (use the /upload-url endpoint to get a one-time upload URL first)
AuthorizationBearer <token>

API key for merchant integrations. Send as Authorization: Bearer <your key>.

In: header

Path Parameters

id*string

Product ID

Request Body

application/json

Product data. The image field should be a URL string from Cloudflare Images.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://example.com/products/string" \  -H "Content-Type: application/json" \  -d '{}'
Empty
Empty