bomVersions
Requires permission biddesk:assembly:read.
An assembly's bill-of-materials versions, newest first, without lines. Requires Bid Desk with engineered products 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 BomVersions($assemblyProductId: ID!) {
bomVersions(assemblyProductId: $assemblyProductId) {
id
status
createdAt
assemblyProductId
note
obsoletedAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BomVersions($assemblyProductId: ID!) {\n bomVersions(assemblyProductId: $assemblyProductId) {\n id\n status\n createdAt\n assemblyProductId\n note\n obsoletedAt\n }\n}",
"variables": {
"assemblyProductId": "id"
}
}
EOF
Variables:
{
"assemblyProductId": "id"
}
Response:
{
"data": {
"bomVersions": [
{
"id": "id",
"status": "DRAFT",
"createdAt": "2025-01-15T00:00:00Z",
"assemblyProductId": "id",
"note": "string",
"obsoletedAt": "2025-01-15T00:00:00Z"
}
]
}
}
bomVersions(
assemblyProductId: ID!
): [BomVersion!]!
Arguments
bomVersions.assemblyProductId ● ID! non-null scalar
The assembly product.
Type
BomVersion object
One numbered version of an assembly's bill of materials. Only a DRAFT can be changed; RELEASED and OBSOLETE versions are fixed.