Parameters
variant_type
dictionary
value
dictionary
POST/products/v1/variant_types/{{variant_type_id}}/values
bash
curl https://api.tradly.app/products/v1/variant_types/{{variant_type_id}}/values \
-H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"variant_type": {
"value": {
"name": "L",
"active": true
}
}
}'RESPONSE
json
{
"status": true,
"data": {
"variant_type": {
"id": 1
}
}
}