POST /bundle-variants.json
Body Required
-
Component variant
-
Quantity
Default value is
1
. -
Variant
POST
/bundle-variants.json
curl \
-X POST http://api.example.com/v1/bundle-variants.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"componentVariantId":42,"quantity":1,"variantId":42}'
Request example
{
"componentVariantId": 42,
"quantity": 1,
"variantId": 42
}
Response examples (200)
{
"componentVariantId": 42,
"createdAt": "2024-05-04T09:42:00+00:00",
"id": 42,
"quantity": 1,
"updatedAt": "2024-05-04T09:42:00+00:00",
"variantId": 42
}