Comments
POST
comments
Adds a comment to a BIM 360 Project Management RFI.
Note that this endpoint is compatible with both BIM 360 and Autodesk Construction Cloud (ACC) projects.
Resource Information
Method and URI | POST https://developer.api.autodesk.com/bim360/rfis/v2/containers/:containerId/rfis/:rfiId/comments |
Authentication Context | user context required |
Required OAuth Scopes | data:write data:create |
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 |
* Required
Request
URI Parameters
containerId string | The ID of the container. Each project is assigned a container that stores all the RFIs for the project. To find the ID, see the Retrieve a Container ID tutorial. |
rfiId string | The ID of the RFI. |
Request
Body Structure
body string | The content of the comment.
Max length: 1000 |
Response
HTTP Status Code Summary
201 Created | Created |
400 Bad Request | The parameters are invalid |
401 Unauthorized | The provided bearer token is not valid |
403 Forbidden | The user or service represented by the bearer token does not have permission to perform this operation |
500 Internal Server Error | An unknown error occurred on the server |
Response
Body Structure (201)
id string | The ID of the comment. |
rfiId string | The ID of the RFI associated with the comment. |
body string | The content of the comment. |
createdBy string | The Autodesk ID of the user who created the comment. To check the name of the user, call GET projects/users. |
createdAt datetime: ISO 8601 | The timestamp of the date and time the comment was created, in the following format: YYYY-MM-DDThh:mm:ss.sz . |
updatedAt datetime: ISO 8601 | The timestamp of the date and time the comment was updated, in the following format: YYYY-MM-DDThh:mm:ss.sz . |
Example
Created
Request
curl -v 'https://developer.api.autodesk.com/bim360/rfis/v2/containers/:containerId/rfis/:rfiId/comments' \
-X 'POST' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a' \
-H 'Content-Type: application/json' \
-d '{
"body": "This needs more attention."
}'
Response
{
"id": "94ce6921-e8f9-4bc5-bf5a-1a8f543a2564",
"rfiId": "0d302fc6-00a5-45ca-a9df-4427b9247c81",
"body": "This needs more attention.",
"createdBy": "PER8KQPK2JRT",
"createdAt": "2018-08-01T08:56:48.699Z",
"updatedAt": "2019-08-01T08:56:48.699Z"
}
Show More