Products

Update product

Updates an existing product

patch/products/{id_or_slug}

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/products/{id_or_slug}
  • Auth: API key in header Authorization

Path parameters

id_or_slugstring required

The resource ID (e.g., "prod_3f9a1c0b7d2e4a6f8b1c3d5e") or slug (e.g., "my-product")

Request body

namestring
status'draft' | 'active' | 'archived'

A product can't be set to active until it has at least one price variant. Create it as draft (or omit — draft is the default), add a price variant via POST /v1/price_variants, then PATCH the product to active.

descriptionstring
body_htmlstring
slugstring
button_ctastring nullable
available_fromstring date-time nullable
available_untilstring date-time nullable
tax_codestring nullable
imagesstring[]

MediaLibrary file ids (e.g. file_abc123) to set as the product gallery; the first is the cover. Replaces the existing gallery — an empty array clears it. Create files via POST /v1/files or POST /v1/images/generate.

Example request

{
  "images": [
    "file_abc123"
  ]
}

Response

Product updated

idstring required
objectstring required
namestring required
slugstring required
status'draft' | 'active' | 'archived' required
descriptionstring required
created_atstring date-time required
updated_atstring date-time required
metadataobject required
body_htmlstring required
button_ctastring nullable required
urlstring required
available_fromstring date-time nullable required
available_untilstring date-time nullable required
published_atstring date-time nullable required
reviews_countinteger required
average_ratingnumber nullable required

Changes

No recorded changes to this operation across all 2 revisions of this API.