CubeCom Pro Docs
API reference

GraphQL Inputs

Field reference for selected GraphQL input objects in the CubeCom Pro schema.

Partial reference for commonly used input types. See schema coverage for missing declarations.

ConfigurationStateInput

Input passed to resolveConfiguration.

FieldTypeRequiredDescription
productIdString!YesID of the target product.
productRevisionIdStringNoExplicit revision ID for draft preview. If omitted, resolves against Product.activeRevisionId.
selectionsJsonString!YesJSON-encoded selection dictionary (e.g. "{\"frame\":\"walnut\"}").

ResolveCommerceInput

Input passed to resolveCommerce when only external commerce identity is needed.

FieldTypeRequiredDescription
productRevisionIdString!YesRevision whose commerce mapping set is resolved.
providerString!YesMapping provider key, such as shopify.
selectionJsonString!YesJSON-encoded dictionary from choice key to value key. Note the singular field name.
integrationConnectionIdStringNoRestricts resolution to a specific provider connection when supplied.

Example parsed selectionJson:

{
  "frame": "walnut",
  "fabric": "beige"
}

Constraints: send an object, use keys from the specified revision, and JSON-encode it exactly once.


SaveConfigurationInput

FieldTypeRequiredDescription
productIdString!YesProduct that owns the saved state.
productRevisionIdString!YesExact revision used to interpret the selection.
selectionsJsonString!YesJSON-encoded selection dictionary.
metadataJsonStringNoOptional application-owned JSON metadata. No public nested schema is enforced beyond valid JSON.

CreateProductInput

FieldTypeRequiredDescription
nameString!YesDisplay name of the product.
keyString!YesUnique alphanumeric slug/key.
organizationIdString!YesID of the parent organization.
projectIdString!YesID of the parent project.
descriptionStringNoOptional product description.

CreateChoiceInput

FieldTypeRequiredDescription
productRevisionIdString!YesID of target draft revision.
nameString!YesDisplay name of choice (e.g. Fabric).
keyString!YesStable key (e.g. fabric).
typeAttributeTypeNoAttribute type (SELECT, MULTI_SELECT, NUMBER, TEXT, BOOLEAN). Defaults to SELECT.
requiredBooleanNoWhether choice is mandatory. Defaults to false.
sortOrderFloatNoDisplay sorting index.

CreateChoiceValueInput

FieldTypeRequiredDescription
choiceIdString!YesID of parent choice.
nameString!YesDisplay name of value (e.g. Walnut).
keyString!YesStable key (e.g. walnut).
sortOrderFloatNoDisplay sorting index.
metadataJsonStringNoCustom JSON payload for color hex, image thumbnails, etc.

CreateConstraintInput

FieldTypeRequiredDescription
productRevisionIdString!YesID of target draft revision.
choiceValueIds[String!]!YesList of ChoiceValue IDs that cannot be selected together.

CreateProductModelInput

FieldTypeRequiredDescription
productRevisionIdString!YesID of target draft revision.
keyString!YesUnique model key (e.g. main).
nameString!YesDisplay name of model.
objectAssetRevisionIdStringNoID of root ObjectAssetRevision to pin.

CreateProductModelLinkedAssetInput

FieldTypeRequiredDescription
productModelIdString!YesID of parent ProductModel.
keyString!YesUnique linked asset key (e.g. brass-legs).
roleProductModelAssetRole!YesAsset role (OBJECT, MATERIAL, TEXTURE, ANIMATION, ENVIRONMENT, SHADER).
assetRevisionIdString!YesTarget asset revision ID.

CreateVisualEffectInput

FieldTypeRequiredDescription
choiceValueIdString!YesTriggering choice value ID.
modelTargetIdString!YesTarget ModelTarget ID.
operationVisualOperation!YesOperation (SET_MATERIAL, SET_VISIBILITY, REPLACE_COMPONENT, SET_MODEL).
valueJsonString!YesOperation payload JSON.

ReplaceCommerceMappingSetInput

FieldTypeRequiredDescription
productRevisionIdString!YesTarget draft revision ID.
providerString!YesProvider string (e.g. shopify, commercetools).
identityChoiceIds[String!]!YesChoice IDs defining the mapping matrix.
mappings[ReplaceCommerceMappingInput!]!YesList of mapping rows.
integrationConnectionIdStringNoOptional ID of integration connection.

On this page