Relationships between Products, Options and Variations (Admin API)

Hello Seth,

thanks for your help. So it seems that I can’t have a Product with no actual variants; I’ll have to re-think my strategy here - that’s OK, I have an idea how I can get around that.

It brings me to a couple of further questions:-

  1. From somewhere, I got the idea that the options object could have a values member array with what I thought would be the contents of the drop down for that option “type” e.g.
"options": [
   {
     "name": "Size",
     "values": [
       "Small",
       "Medium",
       "Large"
     ]
   },
   {
     "name": "Colour",
     "values": [
       "Blue",
       "Orange",
       "Red",
       "Sky Blue Pink"
     ]
   }
 ],

Did I just dream that? If not where does the values array fit in to the picture?

  1. Let’s suppose that I create my initial Products “Jeans” with a few Variations “Green” “Small”, “Black” “Small” and “Blue” “Small” and I later want to add some more Variations “Black” “Medium” and “Blue” “Medium” but I want to leave the original Variations undisturbed. How do I do that?

best regards,

Derek