Comments
Update comment
Changed onThe Update Comment API allows users to modify an existing comment within a conversation using its unique commentId. This endpoint enables updates to the comment content, status, or metadata while preserving its original context within the conversation. This API is particularly useful for making corrections, appending additional information, or updating comment visibility.
put/1.0/comments/{commentId}
Request
- Base URLhttps://api.rocketlane.com/api
- AuthAPI key in header api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
commentIdinteger required
The ID of the comment object
Query parameters
includeFieldsstring
includeAllFieldsboolean
Example:true
This query parameter allows you to specify if all the fields should be returned in the response body. If the field is left blank, the default properties are returned.
Request body
Example request
{
"commentId": 201,
"content": "This is an updated comment"
}Response
The requested action was successfully executed.
Example response
{
"commentId": 201,
"content": "This is a sample comment",
"createdAt": 1681319726000,
"createdBy": {
"emailId": "john.doe@rocketlane.com",
"userId": 201,
"firstName": "John",
"lastName": "Doe"
},
"source": {
"sourceId": 201,
"sourceType": "PROJECT_CONVERSATIONS"
},
"attachments": [
{
"attachmentId": 201,
"attachmentName": "test_upload.png",
"createdAt": 1680616174929,
"location": "https://rocketlane.com/attachments/0/db83eb19-0bbf-4a37-b4e2-cd1b96708c73/test_upload.png",
"thumbLocation": "https://rocketlane.com/attachments/0/db83eb19-0bbf-4a37-b4e2-cd1b96708c73/thumb_test_upload.png"
}
],
"private": true
}Changes
- info
endpoint added
- info