Products

Update product variants

Partially update one or more of a product's variants; omitted fields are unchanged. media replaces a variant's image with one item; a variant image cannot be removed. A new image is ingested asynchronously and may be missing from this response. With allow_partial_updates, valid variants are applied and the rest are returned in errors. Without it, any invalid variant rejects the whole batch.

patch/products/{product_id}/variants

Request

  • Base URL
    https://api.whatnot.com/seller-api/rest/v2
  • URL
    https://api.whatnot.com/seller-api/rest/v2/products/{product_id}/variants
  • Auth
    OAuth 2
    Authorization code: https://api.whatnot.com/seller-api/rest/oauth/authorize
    Token URL: https://api.whatnot.com/seller-api/rest/oauth/token

Path parameters

product_idstring required

The product's ID.

Request body

allow_partial_updatesboolean

When true, valid variants are applied and failures are returned in errors. When false, any invalid variant rejects the whole batch with a 422 and nothing is written.

Response

The updated variants, plus per-variant errors.

Changes

No recorded changes to this operation across all 1 revision of this API.