Skip to main content

saveConfigModelDraft

Requires permission biddesk:assembly:manage.

Replaces a draft version's definition. The whole definition is validated against its base bill of materials; any problem refuses the save as CONFIG_MODEL_INVALID with errors (path, code, messageKey) and nothing is written. Refused with CONFIG_MODEL_VERSION_NOT_DRAFT on a released or obsolete version, CONFIG_MODEL_TOO_LARGE over 1 MB, CONFIG_BASE_BOM_NOT_RELEASED for a base that is not released, and VERSION_CONFLICT when someone saved first. Requires Bid Desk and permission to manage assemblies.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation SaveConfigModelDraft($input: SaveConfigModelDraftInput!) {
saveConfigModelDraft(input: $input) {
id
status
createdAt
baseBomVersionId
definition
definitionHash
}
}

Variables:

{
"input": {
"definition": {},
"expectedVersion": 0,
"versionId": "id"
}
}

Response:

{
"data": {
"saveConfigModelDraft": {
"id": "id",
"status": "DRAFT",
"createdAt": "2025-01-15T00:00:00Z",
"baseBomVersionId": "id",
"definition": {},
"definitionHash": "string"
}
}
}
saveConfigModelDraft(
input: SaveConfigModelDraftInput!
): ConfigModelVersion!

Arguments​

saveConfigModelDraft.input ● SaveConfigModelDraftInput! non-null input​

The draft, the version you loaded and the definition.

Type​

ConfigModelVersion object​

One numbered version of a configuration model: one validated definition built on a released bill-of-materials version. Only a DRAFT can be changed; RELEASED and OBSOLETE versions are fixed.