Shopify API - add options and generate variants programatically

Solved
Highlighted
Tourist
6 1 0

Hello guys,

I'm trying to update a product by adding options/variants as follows:

I have two size types with the following options: Grade (S, M, L), Drop (XL, XXL). 

What I want is to assign those to a product and generate the variants (eg. S-XL, S-XXL, M-XL, etc.), having two options (Grade and Drop), each one with its values.

How can I achieve this? I tried using the Variant/Product API.

0 Likes
Highlighted
Tourist
6 1 0

This is an accepted solution.

I found the issue. Actually, it was a mistake because related to the "Content-Type" value. It should have been "application/json".

0 Likes