Skip to main content
mutation

Requires write_products 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 productCreate 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 productVariantsBulkCreate mutation.

To create or update a product in a single request, use the productSet mutation.

Learn more about the product model and adding product data.

•ProductInput!required

The properties of the new product.

•[CreateMediaInput!]

The media to add to the product.


Was this section helpful?

Anchor to ProductCreatePayload returnsProductCreatePayload returns

•Product

The product object.

•Shop!non-null

The shop associated with the product.

•[UserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?