Update a variant
Updates a variant. Only provided fields are updated.
Required scope: write_products (for API-key authentication).
PATCH
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Body
application/json
Example:
"SKU-001"
Example:
"10.00"
Example:
"USD"
One pair per option type the variant participates in (e.g. size + color). Option types and values are auto-created if missing.
Per-currency prices. Upserted by currency.
Per-stock-location inventory. Upserted by stock_location_id.
Response
200 - application/json
variant updated
Spree Admin SDK

