Skip to content

savePackage

Create or update a package. A model with an id updates that package; without one, it creates one.

catalog {
savePackage(
andPublish: Boolean!
asTemplate: Boolean
model: PackageInput!
): Package
}

Publish the package once it is saved. Only a draft or lapsed package can be published. Not with asTemplate.

Save the package as a template to copy new ones from. Only a draft or a template can be saved as one. False by default.

The package to save.

A package of other products, sold as one product, such as a season ticket.