Skip to main content

clusterOptionCreate

Create a configurable option on a cluster.

The catalogue's default language must be present in the localized name list. Products selectable for the option can either be supplied at creation time through the productIds list or attached later through the dedicated assignment mutations.

Possible errors:

  • CLUSTER_NOT_FOUND: The supplied cluster identifier did not match any cluster.
  • SCHEMA_VALIDATION: One or more input fields failed validation.

AUTH: Role=[product.OWNER]

clusterOptionCreate(
clusterId: Int!
input: ClusterOptionCreateInput!
): ClusterOption!

Arguments​

clusterOptionCreate.clusterId ● Int! non-null scalar​

Numeric identifier of the cluster the option should be added to.

clusterOptionCreate.input ● ClusterOptionCreateInput! non-null input​

Definition of the cluster option to create.

Type​

ClusterOption object​

Cluster option for configuring cluster product selections