{
"title": "Clif Bar Energy Bar",
"description": "Some description",
"imageUrls": [
"https://www.europasports.com/media/catalog/500/722252300706.jpg",
"https://www.europasports.com/media/catalog/500/722252300904.jpg",
"https://www.europasports.com/media/catalog/500/722252301208.jpg",
"https://www.europasports.com/media/catalog/500/722252301307.jpg"
],
"variantSKUs": [
"540002",
"540003",
"540007",
"540008"
],
"variesBy": {
"aspectsImageVariesBy": [
"Flavor",
"Size"
],
"specifications": [{
"name": "Flavor",
"values": [
"Apricot",
"Chocolate Chip",
"Crunchy Peanut Butter",
"Chocolate Chip Peanut Crunch"
]
}, {
"name": "Size",
"values": [
"12 - 2.4 oz (68 g) bar (28.8 oz [816 g])",
"12 - 2.4 oz (68 g) bar",
"12 - 2.4 oz (68 g) bar [28.8 oz (816 g)] box"
]
}]
}
}
And here is the response I received:
{
"errors": [
{
"errorId": 25709,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "Invalid value for aspectsImageVariesBy.",
"parameters": [
{
"name": "text1",
"value": "aspectsImageVariesBy"
}
]
}
]
}
**EDIT: ** Updated request body with correct specifications key. Also here is the request body that I managed to get working by removing "Size". Still trying to determine why I cannot create an inventoryItemGroup with both size and flavor variant options. See my comment for details.
{
"title": "Clif Bar Energy Bar",
"description": "Some description",
"imageUrls": [
"https://www.europasports.com/media/catalog/500/722252300706.jpg",
"https://www.europasports.com/media/catalog/500/722252300904.jpg",
"https://www.europasports.com/media/catalog/500/722252301208.jpg",
"https://www.europasports.com/media/catalog/500/722252301307.jpg"
],
"variantSKUs": [
"540002",
"540003",
"540007",
"540008"
],
"variesBy": {
"aspectsImageVariesBy": [
"Flavor"
],
"specifications": [{
"name": "Flavor",
"values": [
"Apricot",
"Chocolate Chip",
"Crunchy Peanut Butter",
"Chocolate Chip Peanut Crunch"
]
}]
}
}