assemblyStandardCostHistory
Requires permission biddesk:assembly:read.
The assembly's standard-cost snapshots across its versions, newest first. 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 AssemblyStandardCostHistory($assemblyProductId: ID!) {
assemblyStandardCostHistory(assemblyProductId: $assemblyProductId) {
id
status
assemblyProductId
bomVersionId
buckets
computedAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query AssemblyStandardCostHistory($assemblyProductId: ID!) {\n assemblyStandardCostHistory(assemblyProductId: $assemblyProductId) {\n id\n status\n assemblyProductId\n bomVersionId\n buckets\n computedAt\n }\n}",
"variables": {
"assemblyProductId": "id"
}
}
EOF
Variables:
{
"assemblyProductId": "id"
}
Response:
{
"data": {
"assemblyStandardCostHistory": [
{
"id": "id",
"status": "COMPLETE",
"assemblyProductId": "id",
"bomVersionId": "id",
"buckets": {},
"computedAt": "2025-01-15T00:00:00Z"
}
]
}
}
assemblyStandardCostHistory(
assemblyProductId: ID!
take: Int
): [AssemblyStandardCost!]!
Arguments
assemblyStandardCostHistory.assemblyProductId ● ID! non-null scalar
The assembly product.
assemblyStandardCostHistory.take ● Int scalar
How many snapshots (1 to 50; default 20).
Type
AssemblyStandardCost object
The per-unit standard cost of a released assembly version: a dated snapshot rolled up with the bid roll-up over the default-option structure. Totals, buckets, sources and the move are null for a caller without permission to view costs.