Skip to main content

Create editions

Important

This feature is currently in Early Availability (EA) status. For more information, see GraphQL API policy.

Every product must have at least one edition. The createProductEdition mutation creates an edition with an edition code and ID. After you create an edition, you can add pricing information.

Mutation

mutation {
createProductEdition(
input: {
productId: "06ea7f9d-4a1b-4a00-810f-089ac43972e2"
edition: { code: "test-edition"}
}
) {
edition {
id
}
userErrors
}
}

Response

{
"data": {
"createProductEdition": {
"edition": {
"id": "dc1b092c-bb68-480a-bde4-6ea996c86809"
}
}
}
}

Was this page helpful?