bomVersion
Requires permission biddesk:assembly:read.
One bill-of-materials version with its lines, or null. 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 BomVersion($id: ID!) {
bomVersion(id: $id) {
id
status
createdAt
assemblyProductId
note
obsoletedAt
lines {
id
findNumber
alternateProductIds
bomVersionId
componentProductId
drawingRef
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query BomVersion($id: ID!) {\n bomVersion(id: $id) {\n id\n status\n createdAt\n assemblyProductId\n note\n obsoletedAt\n lines {\n id\n findNumber\n alternateProductIds\n bomVersionId\n componentProductId\n drawingRef\n }\n }\n}",
"variables": {
"id": "id"
}
}
EOF
Variables:
{
"id": "id"
}
Response:
{
"data": {
"bomVersion": {
"id": "id",
"status": "DRAFT",
"createdAt": "2025-01-15T00:00:00Z",
"assemblyProductId": "id",
"note": "string",
"obsoletedAt": "2025-01-15T00:00:00Z",
"lines": [
{
"id": "id",
"findNumber": "string",
"alternateProductIds": [
"id"
],
"bomVersionId": "id",
"componentProductId": "id",
"drawingRef": "string"
}
]
}
}
}
bomVersion(
id: ID!
): BomVersionWithLines
Arguments
bomVersion.id ● ID! non-null scalar
The version's id.
Type
BomVersionWithLines object
A bill-of-materials version with its live lines.