Skip to main content
POST
Create a product variant

Autorizaciones

Authorization
string
header
requerido

Workspace API key sent as a bearer token: Authorization: Bearer failfast_.... Create keys in Settings -> Workspace -> API Keys.

Cuerpo

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.

title
string
requerido
product_option_values
string<uuid>[]
requerido
product
string<uuid>
requerido
custom_fields
unknown
barcode
string | null
ean
string | null
upc
string | null
is_manage_stock
boolean

Respuesta

201 - application/json
message
string
requerido

Human-readable outcome of the request.

error
boolean
requerido

true when the request failed.

Ejemplo:

false

data
object
requerido

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.