Anchor to productOptionsCreateproduct
mutationproduct Options Create
Requires access scope. Also: The user must have a permission to create product variants.
Creates options on a product.
Anchor to Arguments
Arguments
- Anchor to optionsoptions•[Option
Create Input!]!required Options to add to the product.
- Anchor to productIdproduct•ID!required
Id The ID of the product to update.
- Anchor to variantStrategyvariant•Product
Strategy Option Create Variant StrategyDefault:LEAVE_AS_IS The strategy defines which behavior the mutation should observe regarding variants. If not provided or set to null, the strategy
will be used.
Was this section helpful?
- Anchor to productproduct•Product
The updated product object.
- Anchor to userErrorsuser•[Product
Errors Options Create User Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?