Skip to main content

createConfigModel

Requires permission biddesk:assembly:manage.

Creates an assembly's configuration model with an empty draft version 1 built on a released bill-of-materials version of the same assembly. Refused with CONFIG_MODEL_EXISTS (and modelId) when the assembly already has one and CONFIG_BASE_BOM_NOT_RELEASED when the base is not released. 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 CreateConfigModel($input: CreateConfigModelInput!) {
createConfigModel(input: $input) {
id
name
createdAt
assemblyProductId
updatedAt
version
versions {
id
status
createdAt
baseBomVersionId
definition
definitionHash
}
}
}

Variables:

{
"input": {
"assemblyProductId": "id",
"baseBomVersionId": "id",
"name": "string"
}
}

Response:

{
"data": {
"createConfigModel": {
"id": "id",
"name": "string",
"createdAt": "2025-01-15T00:00:00Z",
"assemblyProductId": "id",
"updatedAt": "2025-01-15T00:00:00Z",
"version": 0,
"versions": [
{
"id": "id",
"status": "DRAFT",
"createdAt": "2025-01-15T00:00:00Z",
"baseBomVersionId": "id",
"definition": {},
"definitionHash": "string"
}
]
}
}
}
createConfigModel(
input: CreateConfigModelInput!
): ConfigModel!

Arguments​

createConfigModel.input ● CreateConfigModelInput! non-null input​

The assembly, the model's name and its base.

Type​

ConfigModel object​

An assembly's configuration model (at most one per assembly) and its live versions, newest first.