Parameters
variant
dictionary
active
boolean
stock
number
title
string
description
string
list_price
number
offer_percent
number
variant_values
array
PUT/products/v1/listings/{{listing_id}}/variants/{{variant_id}}
bash
curl https://api.tradly.app/products/v1/listings/{{listing_id}}/variants/{{variant_id}} \
-H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
-H "Content-Type: application/json" \
-X PUT \
-d '{
"variant": {
"active": true,
"stock": 2,
"title": "Add optional title Red",
"description": "Add optional desccription L",
"list_price": 32,
"offer_percent": 8,
"variant_values": [
{
"variant_type_id": 4,
"variant_type_value_id": 1
},
{
"variant_type_id": 5,
"variant_type_value_id": 2
}
]
}
}'RESPONSE
json
{
"status": true,
"data": {
"variant": {
"id": 1
}
}
}