01.software Docs

patchProductVariants

Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.

All HTTP operations
PATCH
/api/products/{id}/variants

Tenant-editor write scope. Requires the current graphRevision; stale graph conflict preserves the current revision in the legacy error envelope. Updates cannot reassign optionValues; projection sync staleness is explicit.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Public integration credentials: verified opaque sk01_ secret key or pat01_ personal access token; operation policy and read/write scopes still apply. These credentials are not Customer JWTs.

Path Parameters

id*string

Document ID

Request Body

application/json
  1. body
graphRevision*string
Length1 <= length
updates?array<>
Itemsitems <= 250
deletes?array<string|number>
Itemsitems <= 250

Response Body

Actual shaped success body

application/json
  1. response
ok*true
Value intrue
productId*string
updated*number
deleted*number
productProjectionStale*boolean

Examples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.

Example Request
curl -X PATCH 'https://api.01.software/api/products/string/variants' \  -H 'Content-Type: application/json' \  -d '{  "graphRevision": "string"}'
Example Response
{  "ok": true,  "productId": "string",  "updated": 0,  "deleted": 0,  "productProjectionStale": true}