configModels
Requires permission biddesk:assembly:read.
Configuration models with their versions newest first, optionally of one assembly. Requires Bid Desk and permission to read 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:
- GraphQL
- cURL
query ConfigModels {
configModels {
id
name
createdAt
assemblyProductId
updatedAt
version
versions {
id
status
createdAt
baseBomVersionId
definition
definitionHash
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query ConfigModels {\n configModels {\n id\n name\n createdAt\n assemblyProductId\n updatedAt\n version\n versions {\n id\n status\n createdAt\n baseBomVersionId\n definition\n definitionHash\n }\n }\n}"
}
EOF
Response:
{
"data": {
"configModels": [
{
"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"
}
]
}
]
}
}
configModels(
assemblyProductId: ID
): [ConfigModel!]!
Arguments
configModels.assemblyProductId ● ID scalar
Only the model of this assembly product.
Type
ConfigModel object
An assembly's configuration model (at most one per assembly) and its live versions, newest first.