I found my issue. For product variations, the property I was attempting to set was images
, like for the product itself, but I should have been using image
. For example:
Incorrect example:
var_data = {
"variations": [
{
"id": var_id,
"images": [image_data[2]]
}
]
}
Correct example:
var_data = {
"variations": [
{
"id": var_id,
"image": [image_data[2]]
}
]
}