v1/containers/{containerId}/performance-tracking-item-instances
Creates a performance tracking item instance based on the specified tracking item in the given project. You can create multiple instances to track the performance of the underlying budget at each of its associated locations. For more information about performance tracking, see the Cost Management API Field Guide.
Note that a default tracking item instance is automatically generated when a tracking item is created, so use this endpoint only to create additional tracking item instances.
Resource Information
Method and URI | POST https://developer.api.autodesk.com/cost/v1/containers/:containerId/performance-tracking-item-instances |
Authentication Context | user context required |
Required OAuth Scopes | data:write |
Data Format | JSON |
Request
Headers
Authorization* string | Must be Bearer <token> , where <token> is obtained via a three-legged OAuth flow. |
Content-Type* string | Must be application/json |
region string | The region where the project data resides, to which this request is routed.
This header is optional because the request is automatically routed to a target region based on the project ID or container ID. Using the header, though, can save lookup time on each API call. For information about verifying the region the data resides in, see the Working with BIM 360 Services in Different Regions section on the API Basics page. Possible values: |
Request
URI Parameters
containerId string: UUID | The ID of the cost container for the project. Each project is assigned a container that stores all of the cost data for the project.
To find the container ID, see the Retrieve a Cost Container ID tutorial. In ACC projects, the container ID is the same as the project ID. To obtain a project ID, use GET projects. |
Request
Body Structure
The tracking item instance
number string | The user-provided or system generated code representing the tracking item instance. |
name string | The user-provided name of the tracking item instance. |
budgetId* string: UUID | The unique identifier of the budget to which the performance tracking item instance belongs. |
inputUnit string | The input unit of measurement of the tracking item instance. This value should always be hr . |
inputQuantity* number | The input quantity of the tracking item instance. You can multiply this by the value of inputUnitPrice to determine the planned total for this instance. |
inputUnitPrice* number,string,null | The input unit price of the tracking item instance. You can multiply this by the value of inputQuantity to determine the planned total for this instance. |
outputUnit string | The output unit of measurement of the tracking item instance. |
outputQuantity* number | The output quantity of the tracking item instance. You can multiply this by the value of outputUnitPrice to determine the planned total for this instance. |
outputUnitPrice* number,string,null | The output unit price of the tracking item instance. You can multiply this by the value of outputQuantity to determine the planned total for this instance. |
trackedInputQuantity number,null | The reported hours worked so far on the tracking item instance. |
trackedOutputQuantity number,null | The reported quantity of material used so far on the tracking item instance |
adjustedOutputQuantity number,null | The overriding output quantity that you specified to reflect a change (if any) in the scope of the tracking item instance. This value will be used instead of the value of outputQuantity in future performance tracking and forecasting for this tracking item instance. |
locations array,null | A list of the IDs of the project locations where this item applies.
For more information, see the Locations Help documentation help. |
Response
HTTP Status Code Summary
201 Created | Success |
400 Bad Request | The parameters are invalid. |
401 Unauthorized | The provided bearer token is invalid. |
403 Forbidden | Forbidden. The user or service represented by the bearer token does not have permission to perform this operation. |
404 Not Found | The resource or endpoint cannot be found. |
409 Conflict | The request could not be completed due to a conflict with the current state of the resource. |
429 Too Many Requests | Rate limit exceeded. Retry your request after a few minutes. |
500 Internal Server Error | An unexpected error occurred on the server. |
503 Service Unavailable | Service unavailable. |
Response
Body Structure (201)
id string: UUID | The ID of the tracking item instance. |
containerId string: UUID | The ID of the cost container for the project that contains the tracking item instance. |
number string | The user-provided or system generated code representing the tracking item instance. |
name string | The user-provided name of the tracking item instance. |
budgetId string: UUID | The unique identifier of the budget to which the performance tracking item instance belongs. |
budgetCode string | The code of the budget to which the tracking item instance belongs. |
inputUnit string | The input unit of measurement of the tracking item instance. This value should always be hr . |
inputQuantity number | The input quantity of the tracking item instance. You can multiply this by the value of inputUnitPrice to determine the planned total for this instance. |
inputUnitPrice number,string,null | The input unit price of the tracking item instance. You can multiply this by the value of inputQuantity to determine the planned total for this instance. |
outputUnit string | The output unit of measurement of the tracking item instance. |
outputQuantity number | The output quantity of the tracking item instance. You can multiply this by the value of outputUnitPrice to determine the planned total for this instance. |
outputUnitPrice number,string,null | The output unit price of the tracking item instance. You can multiply this by the value of outputQuantity to determine the planned total for this instance. |
trackedInputQuantity number,null | The reported hours worked so far on the tracking item instance. |
trackedOutputQuantity number,null | The reported quantity of material used so far on the tracking item instance |
adjustedOutputQuantity number,null | The overriding output quantity that you specified to reflect a change (if any) in the scope of the tracking item instance. This value will be used instead of the value of outputQuantity in future performance tracking and forecasting for this tracking item instance. |
performanceRatio number,null | The tracking item instance’s planned productivity rate (inputQuantity /outputQuantity ) divided by its tracked productivity rate (trackedInputQuantity /trackedOutputQuantity ). |
creatorId string,null | The BIM 360/ACC ID of the user who created the tracking item instance. |
changedBy string,null | The BIM 360/ACC ID of the user who made the last change to the tracking item instance. |
locations array,null | A list of the IDs of the project locations where this item applies.
For more information, see the Locations Help documentation help. |
locationPaths array,null | A list of the IDs of the project locations where this item applies, along with the node paths of these locations in the project’s locations tree.
For more information, see the Locations Help documentation help. |
createdAt datetime: ISO 8601 | The date and time that the item was created, in ISO 8601 format. |
updatedAt datetime: ISO 8601 | The date and time that the item was last updated, in ISO 8601 format. |
Example
Success
Request
curl -v 'https://developer.api.autodesk.com/cost/v1/containers/e94b9bc8-1775-4d76-9b1d-c613e120ccff/performance-tracking-item-instances' \
-X 'POST' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a' \
-H 'Content-Type: application/json' \
-d '{
"number": "84720010121001FEE-01",
"name": "Concrete",
"budgetId": "1df59db0-9484-11e8-a7ec-7ddae203e404",
"inputUnit": "hr",
"inputQuantity": "100",
"inputUnitPrice": "1000.0000",
"outputUnit": "cy",
"outputQuantity": "100",
"outputUnitPrice": "1000.0000",
"trackedInputQuantity": "100",
"trackedOutputQuantity": "100",
"adjustedOutputQuantity": "100",
"locations": [
"683904a0-47ce-4146-ac2d-a3840f00e0f4"
]
}'
Response
{
"id": "1df59db0-9484-11e8-a7ec-7ddae203e404",
"containerId": "1df59db0-9484-11e8-a7ec-7ddae203e404",
"number": "84720010121001FEE-01",
"name": "Concrete",
"budgetId": "1df59db0-9484-11e8-a7ec-7ddae203e404",
"budgetCode": "84720010121001FEE",
"inputUnit": "hr",
"inputQuantity": "100",
"inputUnitPrice": "1000.0000",
"outputUnit": "cy",
"outputQuantity": "100",
"outputUnitPrice": "1000.0000",
"trackedInputQuantity": "100",
"trackedOutputQuantity": "100",
"adjustedOutputQuantity": "100",
"performanceRatio": "1.00",
"creatorId": "CED9LVTLHNXV",
"changedBy": "CED9LVTLHNXV",
"locations": [
"683904a0-47ce-4146-ac2d-a3840f00e0f4"
],
"locationPaths": [
"683904a0-47ce-4146-ac2d-a3840f00e0f4"
],
"createdAt": "2019-01-06T01:24:22.678Z",
"updatedAt": "2019-09-05T01:00:12.989Z"
}