Parameters
variant_type
dictionary
name
string
active
boolean
values
array
POST/products/v1/variant_types
bash
curl https://api.tradly.app/products/v1/variant_types \
-H "Authorization: Bearer YOUR_PUBLISHABLE_OR_SECRET_KEY" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"variant_type": {
"name": "Size",
"active": true,
"values": [
"Blue",
"White",
"Red"
]
}
}'RESPONSE
json
{
"status": true,
"data": {
"variant_type": {
"id": 1
}
}
}