Actions
GET
v1/containers/{containerId}/workflows/{associationType}/{associationId}/actions
List the actions that can execute on the specified item according to the item’s current state.
Note that this endpoint is compatible with both BIM 360 and Forma projects.
Resource Information
| Method and URI | GET https://developer.api.autodesk.com/cost/v1/containers/:containerId/workflows/:associationType/:associationId/actions |
| Authentication Context | User context required |
| Required OAuth Scopes | data:read |
| Data Format | JSON |
Request
Headers
| Authorization* string | Must be Bearer <token>, where <token> is a three-legged access token obtained via an Authorization Code flow or a Secure Service Account (SSA) flow.
The SSA flow is designed for headless server-to-server operations. While it functions like a two-legged flow (no user interaction), it is classified as three-legged because it preserves user context. |
| region string | Specifies the region where the project data resides.
By default, the request is routed automatically. However, specifying the region can improve performance by avoiding lookup overhead. Possible values: country or region codes such as To verify your project’s region, refer to the Working with BIM 360 Services in Different Regions section on the API Basics page. |
* Required
Request
URI Parameters
| containerId string: UUID | The ID of the project (the container ID is the same as the project ID). To obtain the project ID, see GET projects. |
| associationId string: UUID | The object ID that the item is associated with. For example, the ID of a budget, contract, or cost item. |
| associationType enum:string | The type of the item with which the actions are associated. Possible values: FormInstance, CostItem, OCO, PCO, RCO, RFQ, SCO, Expense, Contract, CostPayment, BudgetPayment, BudgetTransfer, MainContract. |
Response
HTTP Status Code Summary
| 200 OK | 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 (200)
Expand all
| name string | The name of the action that you can perform on the item. |
| transforms array: object | The list of changes that you can perform on the associated item. |
| key string | The name of the attribute that will be changed as a result of performing the action on the item; usually the status of the item. |
| to string | The new value assigned to the attribute after the action is performed. For example, update budgetStatus to open. |
| rules array: object | The list of conditions that are required in order to be able to perform the action. For example, you can only open a PCO’s budgetStatus and costStatus when they are in a draft state. |
| key string | The name of the attribute on the associated item that will be checked against before performing the action. |
| only array: string | The value of the attribute that will be checked against before performing the action. |
Example
Success
Request
curl -v 'https://developer.api.autodesk.com/cost/v1/containers/e94b9bc8-1775-4d76-9b1d-c613e120ccff/workflows/FormInstance/18d97ae0-9484-11e8-a7ec-7ddae203e404/actions' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
Response
[
{
"name": "open",
"transforms": [
{
"key": "budgetStatus",
"to": "open"
}
],
"rules": [
{
"key": "budgetStatus",
"only": "['draft']"
}
]
}
]
Show More