v1/projects/{projectId}/issues/{issueId}
Updates an issue.
To verify whether a user can update issues for a specific project, call GET users/me.
To verify which attributes the user can update, call GET issues/:id and check the permittedAttributes and permittedStatuses lists.
We support retrieving file-related pushpins. However, we do not currently support retrieving sheet-related pushpins from the Forma Build Sheets tool.
Updating deleted issues is not allowed.
To add, replace, or remove the pushpin on an issue, call POST placements:upsert or POST placements:unlink.
This endpoint automatically triggers the issue.updated-1.0 webhook event when an issue is successfully updated. If you have configured a webhook subscription for this event, your application will receive a notification. For more information, see the Issues Webhooks section in the Field Guide.
Resource Information
| Method and URI | PATCH https://developer.api.autodesk.com/construction/issues/v1/projects/{projectId}/issues/{issueId} |
| Authentication Context | User-delegated only (accepts only three-legged access tokens) |
| Required OAuth Scopes | data:read data:write |
| 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. |
| x-ads-region string | The region to which your request should be routed. If not set, the request is routed automatically but may incur a small latency increase.
Possible values: For the full list of supported regions, see the Regions page. |
| Content-Type* string | Must be application/json |
Request
URI Parameters
| projectId string: UUID | The ID of the project.
Use the Data Management API to retrieve the project ID. For more information, see the Retrieve a Project ID tutorial. You need to convert the project ID into a project ID for the Forma API by removing the “b." prefix. For example, a project ID of b.a4be0c34a-4ab7 translates to a project ID of a4be0c34a-4ab7. |
| issueId string: UUID | The unique identifier of the issue. To find the ID, call GET issues. |
Request
Body Structure
The payload for updating an existing issue.
| title string | The title of the issue. Maximum 100 characters. |
| description string | A brief description of the issue and its purpose. Maximum 1000 characters. |
| snapshotUrn string | Not relevant |
| issueSubtypeId string: UUID | The unique identifier of the subtype of the issue. |
| status string | The current status of the issue. To check the available statuses for the project, call GET users/me and check the permitted statuses list (issue.new.permittedStatuses). For more information about statuses, see the Help documentation. |
| assignedTo string | The Autodesk ID of the member, role, or company you want to assign to the issue. Note that if you select an assignee ID, you also need to select a type (assignedToType).
We do not currently provide endpoints to programmatically find the member, role, or company IDs that you are permitted to assign to the issue. We recommend using the Data Connector API to extract the permitted IDs. See the Retrieve Available Members Roles and Companies tutorial for more details. |
| assignedToType string | The type of the current assignee of this issue. Possible values: user, company, role, null. Note that if you select a type, you also need to select the assignee ID (assignedTo). Note that additional values may be added in the future. |
| dueDate string | The due date of the issue, in ISO8601 format. |
| startDate string | The start date of the issue, in ISO8601 format. |
| locationId string: UUID | The unique LBS (Location Breakdown Structure) identifier that relates to the issue. |
| locationDetails string | The location related to the issue, provided as plain text. Maximum 250 characters. |
| rootCauseId string: UUID | The unique identifier of the type of root cause for the issue. |
| published boolean | States whether the issue is published. Default value: false (e.g. unpublished). |
| permittedActions array: string | The list of actions permitted for the user for this issue in its current state.
Note that if a user with View and assign to their company permissions attempts to assign a user from a another company to the issue, it will return an error. Possible Values: The following values are not relevant: Note that additional values may be added in the future. |
| watchers array: string | The Autodesk ID of the member you want to assign as a watcher for the issue.
We do not currently provide endpoints to programmatically find the member IDs that you are permitted to assign as watchers for the issue. We recommend using the Data Connector API to extract the permitted IDs. See the Retrieve Available Members tutorial for more details. |
| customAttributes array: object | A list of custom attributes of the specific issue. |
| attributeDefinitionId* string: UUID | The unique identifier of the custom attribute. |
| value* one of | Custom attribute value. Possible value types: string, number, null. |
| 0* string | |
| 1* number | |
| 2* null | |
| gpsCoordinates object | A GPS Coordinate which represents the geo location of the issue. |
| latitude number | |
| longitude number | |
| snapshotHasMarkups boolean | Not relevant |
Response
HTTP Status Code Summary
| 200 OK | Returns the updated issue |
| 400 Bad Request | The request could not be understood by the server due to malformed syntax or missing request headers. The client SHOULD NOT repeat the request without modifications. The response body may give an indication of what is wrong with the request |
| 403 Forbidden | The request is valid but lacks the necessary permissions. |
| 404 Not Found | The specified resource was not found |
Response
Body Structure (200)
| id string: UUID | The unique identifier of the issue. |
| containerId string: UUID | Not relevant |
| deleted boolean | Indicates whether the issue was deleted. Default value: false.
Deleted issues can only be accessed by specific users. Project members with View and assign to their company and Full visibility permissions can view deleted published and unpublished issues they originally created. Project members with Manage issues or Manage member permissions access can view all published issues that were deleted in a project. In addition, they can see unpublished deleted issues if they are an issue watcher, assignee, or creator. For more information about deleted issues see the Help documentation. |
| deletedAt datetime: ISO 8601 | The date and time the issue was deleted, in ISO8601 format. This is only relevant for deleted issues. |
| deletedBy string | The Autodesk ID of the user who deleted the issue. This is only relevant for deleted issues. |
| displayId int | The chronological user-friendly identifier of the issue. |
| title string | The title of the issue. Maximum 100 characters. |
| description string | A brief description of the issue and its purpose. Maximum 1000 characters. |
| snapshotUrn string | Not relevant |
| issueTypeId string: UUID | The unique identifier of the type of the issue. |
| issueSubtypeId string: UUID | The unique identifier of the subtype of the issue. |
| status string | The current status of the issue.
Possible values: For more information about statuses, see the Help documentation. Note that additional values may be added in the future. |
| assignedTo string | The unique Autodesk ID of the member, company, or role of the current assignee for this issue. Note that if you select an assignee ID, you also need to select a type (assignedToType). |
| assignedToType string | The type of the current assignee of this issue. Possible values: user, company, role, null. Note that if you select a type, you also need to select the assignee ID (assignedTo). Note that additional values may be added in the future. |
| dueDate string | The due date of the issue, in ISO8601 format. |
| startDate string | The start date of the issue, in ISO8601 format. |
| locationId string: UUID | The unique LBS (Location Breakdown Structure) identifier that relates to the issue. |
| locationDetails string | The location related to the issue, provided as plain text. Maximum 250 characters. |
| linkedDocuments array: object | Information about the files associated with issues (pushpins). This is a legacy property for backward compatibility - will be deprecated. Placement data is available in the ‘placements’ attribute. See the Issue Pushpins API Migration Guide for more inforomation. |
| type string | The type of file. Possible values:
Note that additional values may be added in the future. |
| urn string | The ID of the file associated with the issue (pushpin). Note that we do not currently support data associated with the Forma Build Sheets tool. |
| createdBy string | The Autodesk ID of the user who created the pushpin issue. |
| createdAt datetime: ISO 8601 | The date and time the pushpin was created, in ISO8601 format. |
| createdAtVersion int | The version of the file the pushin issue was added to. For information about file versions, see the Data Management API. |
| closedBy string | The Autodesk ID of the user who closed the pushpin issue. |
| closedAt datetime: ISO 8601 | The date and time the pushpin issue was closed, in ISO8601 format. |
| closedAtVersion int | The version of the file when the pushpin issue was closed. |
| details object | Information about the individual viewable. |
| viewable object | The individual viewable associated with the issue (pushpin). This is relevant for both individual 2D sheets and views within a 3D model, and individual PDF sheets within a multi-sheet PDF file. It is only relevant if the issue is associated with a file. |
| id string | Not relevant |
| guid string | The ID of the viewable (guid). |
| viewableId string | Not relevant |
| name string | The name of the viewable.
Max length: 1000 |
| is3D boolean | true if it is a 3D viewable
false if it is a 2D viewable |
| position object | The coordinates of the pushpin’s position in the viewable. |
| x number | The x-coordinate of the pushpin’s position in the viewable. |
| y number | The y-coordinate of the pushpin’s position in the viewable. |
| z number | The z-value of the position in the viewable. This value is only relevant for 3D views. |
| objectId int | The ID of the element the pushpin is associated with in the viewable. |
| externalId string | An external identifier of the element the pushpin is associated with in the viewable. |
| viewerState object | The viewer state at the time the pushpin was created. Maximum length: 2,500,000 characters. You can get the viewer state object by calling ViewerState.getState(). To restore the viewer instance use ViewerState.restoreState(). See the Viewer API documentation for more details. |
| links array: object | Not relevant |
| ownerId string | Not relevant |
| rootCauseId string: UUID | The unique identifier of the type of root cause for the issue. |
| officialResponse object | Not relevant |
| issueTemplateId string: UUID | Not relevant |
| permittedStatuses array: string | A list of statuses accessible to the current user, this is based on the current status of the issue and the user permissions.
Possible Values: Note that additional values may be added in the future. |
| permittedAttributes array: string | A list of attributes the current user can manipulate in the current context. issueTypeId, linkedDocument, links, ownerId, officialResponse, rootCauseId, snapshotUrn are not applicable.
Possible Values: Note that additional values may be added in the future. |
| published boolean | States whether the issue is published. Default value: false (e.g. unpublished). |
| permittedActions array: string | The list of actions permitted for the user for this issue in its current state.
Note that if a user with View and assign to their company permissions attempts to assign a user from a another company to the issue, it will return an error. Possible Values: The following values are not relevant: Note that additional values may be added in the future. |
| commentCount int | The number of comments in this issue. |
| attachmentCount int | Not relevant |
| openedBy string | Not relevant |
| openedAt datetime: ISO 8601 | Not relevant |
| closedBy string | The unique identifier of the user who closed the issue. |
| closedAt datetime: ISO 8601 | The date and time the issue was closed, in ISO8601 format. |
| createdBy string | The unique identifier of the user who created the issue. |
| createdAt datetime: ISO 8601 | The date and time the issue was created, in ISO8601 format. |
| updatedBy string | The unique identifier of the user who updated the issue. |
| updatedAt datetime: ISO 8601 | The date and time the issue was updated, in ISO8601 format. |
| watchers array: string | The list of watchers for the issue. To find the name of the watcher, call GET users. |
| customAttributes array: object | A list of custom attributes of the specific issue. |
| attributeDefinitionId string: UUID | The unique identifier of the custom attribute. |
| value one of | Custom attribute value. Possible value types: string, number, null. |
| 0 string | |
| 1 number | |
| 2 null | |
| type string | The type of attribute. Possible values: numeric, paragraph, list (this corresponds to dropdown in the UI), text. Note that additional values may be added in the future. |
| title string | Free text description of the attribute. |
| gpsCoordinates object | A GPS Coordinate which represents the geo location of the issue. |
| latitude number | |
| longitude number | |
| snapshotHasMarkups boolean | Not relevant |
| placements array | The list of placements for the issue. |
| oneOf array:oneOf | |
| file placement object | A file placement links an issue to a specific position within a 2D or a 3D model. |
| type string | The type of the placement.
Possible values: |
| lineageUrn string | The unique cross-version identifier for the file. |
| createdAtVersion int | The file version in which this placement was created. When updating, the value must match the existing value (the file version when the issue was first placed). |
| viewable object | The object containing information about a specific view within a file. |
| guid string | The GUID of the viewable. |
| viewableId string | It is recommended to include this field if it is available to help identify the correct viewable. Additional identifier specified by file extractors for the viewable within the design application. May be a GUID or arbitrary string. Stability across file versions depends on the file format. |
| name string | The name of the viewable.
Max length: 1000 |
| is3D boolean | true if it is a 3D viewable
false if it is a 2D viewable |
| sheet placement - not supported object | Sheet placements are currently not supported. |
| hash string | Not relevant |
Example
Returns the updated issue
Request
curl -v 'https://developer.api.autodesk.com/construction/issues/v1/projects/:projectId/issues/:issueId' \
-X 'PATCH' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a' \
-H 'Content-Type: application/json' \
-d '{
"title": "Door missing a screw.",
"description": "The door is missing a screw. Please fix this",
"snapshotUrn": "",
"issueSubtypeId": "1370f222-6c54-3a01-93e6-e701749f0222",
"status": "open",
"assignedTo": "A3RGM375QTZ7",
"assignedToType": "user",
"dueDate": "2018-07-25",
"startDate": "1982-06-01",
"locationId": "35de6f24-39f5-4808-ba5f-6cbbe2a858e1",
"locationDetails": "issue location details",
"rootCauseId": "2370f222-6c54-3a01-93e6-f701772f0222",
"published": true,
"permittedActions": [
"add_comment"
],
"watchers": [
"A3RGM375QTZ7"
],
"customAttributes": [
{
"attributeDefinitionId": "2220f222-6c54-4b01-90e6-d701748f0888",
"value": "368"
}
],
"gpsCoordinates": {
"latitude": 35.7795897,
"longitude": -78.6381787
},
"snapshotHasMarkups": false
}'
Response
{
"id": "3570f222-6c54-4b01-90e6-e701749f0222",
"containerId": "2220f222-6c54-4b01-90e6-d701748f0222",
"deleted": false,
"deletedAt": "2018-07-22T15:05:58.033Z",
"deletedBy": "A3RGM375QTZ7",
"displayId": 7,
"title": "Door missing a screw.",
"description": "The door is missing a screw. Please fix this",
"snapshotUrn": "",
"issueTypeId": "8770f222-6c54-4e01-93e6-e701749f0222",
"issueSubtypeId": "1370f222-6c54-3a01-93e6-e701749f0222",
"status": "open",
"assignedTo": "A3RGM375QTZ7",
"assignedToType": "user",
"dueDate": "2018-07-25",
"startDate": "1982-06-01",
"locationId": "35de6f24-39f5-4808-ba5f-6cbbe2a858e1",
"locationDetails": "issue location details",
"linkedDocuments": [
{
"type": "TwoDVectorPushpin",
"urn": "urn:adsk.wipprod:dm.lineage:0C9edNQuT2SrfoyKQ1Gv_Q",
"createdBy": "A3RGM375QTZ7",
"createdAt": "2018-07-22T15:05:58.033Z",
"createdAtVersion": 1,
"closedBy": "A3RGM375QTZ7",
"closedAt": "2018-08-22T15:05:58.033Z",
"closedAtVersion": 1,
"details": {
"viewable": {
"id": "24820322-7c54-4a01-93e6-e701749f0345",
"guid": "24820322-7c54-4a01-93e6-e701749f0345",
"viewableId": "42",
"name": "3D view of the 3rd floor of the building",
"is3D": true
},
"position": {
"x": 2,
"y": 3,
"z": 8
},
"objectId": 1220,
"externalId": "01a239ce-47cc-4e94-8aa3-2a39866cfc61",
"viewerState": {}
}
}
],
"links": [
{}
],
"ownerId": "",
"rootCauseId": "2370f222-6c54-3a01-93e6-f701772f0222",
"officialResponse": {},
"issueTemplateId": "",
"permittedStatuses": [
"open"
],
"permittedAttributes": [
"title"
],
"published": true,
"permittedActions": [
"add_comment"
],
"commentCount": 3,
"attachmentCount": "",
"openedBy": "A3RGM375QTZ7",
"openedAt": "2018-07-22T15:05:58.033Z",
"closedBy": "A3RGM375QTZ7",
"closedAt": "2018-07-22T15:05:58.033Z",
"createdBy": "A3RGM375QTZ7",
"createdAt": "2018-07-22T15:05:58.033Z",
"updatedBy": "A3RGM375QTZ7",
"updatedAt": "2018-07-22T15:05:58.033Z",
"watchers": [
"A3RGM375QTZ7"
],
"customAttributes": [
{
"attributeDefinitionId": "2220f222-6c54-4b01-90e6-d701748f0888",
"value": "368",
"type": "numeric",
"title": "Cost Impact ($)"
}
],
"gpsCoordinates": {
"latitude": 35.7795897,
"longitude": -78.6381787
},
"snapshotHasMarkups": false,
"placements": [
{
"type": "file",
"lineageUrn": "urn:adsk.wipprod:dm.lineage:0C9edNQuT2SrfoyKQ1Gv_Q",
"createdAtVersion": 1,
"viewable": {
"guid": "24820322-7c54-4a01-93e6-e701749f0345",
"viewableId": "42",
"name": "3D view of the 3rd floor of the building",
"is3D": true
}
}
],
"hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
}