Anchor to productCreateproduct
mutationproduct Create
Requires access scope. Also: The user must have a permission to create products.
Creates a product
with attributes such as title, description, and vendor.
You can use the mutation to define
options and
values
for products with
product variants,
such as different sizes or colors.
To create multiple product variants for a single product and manage prices, use the
mutation.
To create or update a product in a single request, use the
mutation.
Learn more about the product model and adding product data.
Anchor to Arguments
Arguments
- Anchor to inputinput•Product
Input!required The properties of the new product.
- Anchor to mediamedia•[Create
Media Input!] The media to add to the product.
Was this section helpful?
- Anchor to productproduct•Product
The product object.
- Anchor to shopshop•Shop!non-null
The shop associated with the product.
- Anchor to userErrorsuser•[User
Errors Error!]!non-null The list of errors that occurred from executing the mutation.
Was this section helpful?