Creates a Variant Option.
- Only one variant option at a time can be created; individual variant options will contain an array of multiple values.
- There are several examples listed below that create options, but the SKU’s are not updated and they are not a variant on the product. Variant SKUs must be created with a separate request.
- Variant options will show on the storefront as an option that can be selected by the customer. A request like this could be used to add new choices to a variant that has already been created.
- If more than one variant needs to be created use the Create a Product endpoint.
The model for a POST to create options on a product.
The values for option config can vary based on the Modifier created.
The name of the option shown on the storefront.
The unique numerical ID of the option, increments sequentially.
Publicly available image url
The unique numerical ID of the product to which the option belongs.
Order in which the option is displayed on the storefront.
The type of option, which determines how it will display on the storefront. Acceptable values:
swatch. For reference, the former v2 API values are: RB = radio_buttons, RT = rectangles, S = dropdown, P = product_list, PI = product_list_with_images, CS = swatch.
Common Option properties.
Empty meta object; may be used later.