Update variant
PUT
/variants/{variantId}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/variants/' \
--header 'X-Identifier: {{x_identifier}}' \
--header 'Authorization: Bearer {{token}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"stock": "291",
"weight": "2500",
"stock_price": 200,
"purchase_price": 230,
"supplier_sku": "Lev-art-100",
"gtin": "Gtion-valle",
"prices": [
{
"price": 400,
"compare_price": 500
}
]
}'
Response Response Example
{}
Request
Path Params
variantId
string
required
Header Params
X-Identifier
string
optional
Example:
{{x_identifier}}
Authorization
string
optional
Example:
Bearer {{token}}
Accept
string
optional
Example:
application/json
Content-Type
string
optional
Example:
application/json
Body Params application/json