Create Product Option
Create Product Option
Creates a new product option (like Size, Color, etc.) that can be used to create product variants.
Usage​
This mutation must be called before creating a product that uses this option. The option ID returned from this mutation should be referenced when creating products with variants.
Required Fields​
name: The display name of the option (e.g., "Size", "Color")position: The order position of this optionlocale: The locale for the option namestoreId: The store ID where this option will be created
Optional Fields​
handle: URL-friendly identifier (auto-generated if not provided)id: For updating existing options
Example Response​
The mutation returns the created option with its ID, which should be used when creating option values and product variants.
GraphQL Endpoint​
https://graphql.wuilt.com
Operation: CreateProductOption​
Try It Out​
Query​
Query Variables
1
2
3
4
5
6
7
8
9
Note: Make sure to change the storeId with your store ID. For guidance on how to get your store ID, reference the Store ID guide.
Authentication​
To use this query, you will need an API key. Click the "API Key" button in the navigation bar to enter your credentials.