Autodesk Construction Cloud API – issue-root-cause-categories not returning Root Causes
Table of Contents
Background
When doing a GET request with Postman to Autodesk APS ACC API endpoint issue-root-cause-categories HERE
with the include=rootcauses query Parameter the endpoint is not returning the individual Root Causes as described by Autodesk in their Documentation.
GET /construction/issues/v1/projects/########-b8fc-####-####-########05d/issue-root-cause-categories?include=rootcauses HTTP/1.1
Host: developer.api.autodesk.com
Response received
{
"pagination": {
"limit": 200,
"offset": 0,
"totalResults": 6
},
"results": [
{
"id": "dab09e55-9681-5f37-b066-5792e4b02c8b",
"title": "Change Request",
"createdBy": "System",
"updatedBy": "System",
"deletedBy": null,
"createdAt": "2024-04-05T08:01:11.041Z",
"updatedAt": "2024-04-05T08:01:11.041Z",
"deletedAt": null,
"permittedActions": ["edit", "delete"],
"permittedAttributes": ["title", "isActive"],
"isActive": true
}
]
}
Response Expected
{
"pagination": {
"limit": 10,
"offset": 100,
"totalResults": 25
},
"results": [
{
"id": "dab09e55-9681-5f37-b066-5792e4b02c8b",
"title": "Change Request",
"createdBy": "System",
"updatedBy": "System",
"deletedBy": null,
"createdAt": "2024-04-05T08:01:11.041Z",
"updatedAt": "2024-04-05T08:01:11.041Z",
"deletedAt": null,
"rootCauses": [
{
"id": "2220f222-6c54-4b01-90e6-d701748f0222",
"rootCauseCategoryId": "dab09e55-9681-5f37-b066-5792e4b02c8b",
"title": "Constructability",
"isActive": false,
"permittedActions": [
"edit"
],
"permittedAttributes": [
"title"
],
"createdAt": "2024-04-05T08:01:11.041Z",
"createdBy": "System",
"updatedAt": "2024-04-05T08:01:11.041Z",
"updatedBy": "System",
"deletedAt": null,
"deletedBy": null
}
],
"permittedActions": [
"edit",
"delete"
],
"permittedAttributes": [
"title",
"isActive"
],
"isActive": true
}
]
}
Tried:
-
Running request without query param and returned root-cause-categories as expected.
-
Added in the Query Param include=rootcauses and it did not return the rootCauses for the categories as detailed in the API Reference aps.autodesk.com/en/docs/acc/v1/reference/http/issues-issue-root-cause-categories-GET/#body-structure-200
-
Tried multiple projects and variations on spelling of Query Params without any change in response.
Read more here: Source link
