Skip to main content

Trigger variant creation

Use the Trigger variants mutation to trigger creation of the variant.

EXAMPLE-- For the iPhone 13 Pro product, the following are variants that would be created when the mutation runs.

  • iPhone 13 Pro Gold 64gb AT&T

  • iPhone 13 Pro Gold 128gb AT&

  • ... and 25 others

Mutation

mutation triggerProductVariantsCreation($input: TriggerProductVariantCreationInput!) {
triggerProductVariantsCreation(input: $input) {
process {
completedOn
errors
id
}
userErrors
}
}

Was this page helpful?