I am creating some items dynamically and want to add a custom attribute to it. The item gets created, but I can’t seem to ponder out how to set the custom attribute. What is incorrect about this payload for catalog upsert?
{
"idempotency_key": "960c9040-c5b6-489e-99fe-1e299b72291e",
"object": {
"id": "#9587409476667",
"type": "ITEM",
"customAttributeValues":
{
"Square:e571c7c0-3d65-4b3b-983e-81b546299422":
{
"boolean_value": true,
"key": "Square:e571c7c0-3d65-4b3b-983e-81b546299422",
"custom_attribute_definition_id": "6GEYCCI2LFES6G6AR63425LK",
"type": "BOOLEAN",
"name": "HideOnline"
}
},
"item_data":
{
"availableOnline": true,
"availableForPickup": true,
"availableElectronically": true,
"is_archived": true,
"name": "Mother's Day Gift Basket",
"description": "1 x Daffodil - 4in\r\n1 x Daffodil - 6in\r\n1 x Azalea - 4.5in\r\n1 x Hyacinth - 4in\r\n1 x Metal Hanging Flower Pot",
"variations":
[
{
"id": "#9587409476664var",
"type": "ITEM_VARIATION",
"item_variation_data":
{
"sku": "9587409476664",
"price_money":
{
"amount": 4332,
"currency": "USD"
},
"pricing_type": "FIXED_PRICING"
}
}
]
}
}
}