Skip to navigation

Create variant options

View as Markdown

Upsert variant attribute definitions for a product (e.g. Size → [“S”,“M”,“L”]). Idempotent: existing options with the same Name are updated in-place.

Authentication

Authorizationstring

Format: ApiKey <your_key>

Path parameters

idintegerRequired
Product ID

Headers

Idempotency-KeystringRequiredformat: "uuid"
UUID to prevent duplicate POST operations

Request

This endpoint expects an object.
Optionslist of objectsRequired

Response

Variant options upserted
StatusenumOptional

0 = success, 1 = validation error, 2 = internal error

Allowed values: