Hello there!
Could someone help me with my JS Client Item logic.
// wrong
const product = await client.items.create({
itemType: '555444222',
shopifyId: '2356678345',
key: '555444222'
assetStacks: {
uploadIds: '12345, 34567'
}, // INVALID_FORMAT for field type "asset gallery"
});
This is currently returning a 500 status response code and I can’t find the documentation for the expected payload structure for the field type “asset gallery”.
if field type is media -> “single asset”, then expected format of value should be
{
uploadId: '12345'
}
if field type is media -> “asset gallery”, then ??? I tried
{
uploadIds: '12345, 34567'
}
and this is wrong.