Gets the comment specified by commentId.
sheetId required | number Sheet Id of the sheet being accessed. |
commentId required | string ID of the comment |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/sheets/{sheetId}/comments/{commentId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "attachments": [
- {
- "id": 0,
- "parentId": 0,
- "attachmentType": "BOX_COM",
- "attachmentSubType": "DOCUMENT",
- "mimeType": "PNG",
- "parentType": "COMMENT",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "name": "string",
- "sizeInKb": 0,
- "url": "string",
- "urlExpiresInMillis": 0
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "discussionId": 0,
- "id": 0,
- "modifiedAt": "2019-08-24T14:15:22Z",
- "text": "string"
}
Updates the text of a comment. NOTE: Only the user that created the comment is permitted to update it.
sheetId required | number Sheet Id of the sheet being accessed. |
commentId required | string ID of the comment |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
text | string Comment body. |
{- "text": "string"
}
{- "version": 0,
- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "attachments": [
- {
- "id": 0,
- "parentId": 0,
- "attachmentType": "BOX_COM",
- "attachmentSubType": "DOCUMENT",
- "mimeType": "PNG",
- "parentType": "COMMENT",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "name": "string",
- "sizeInKb": 0,
- "url": "string",
- "urlExpiresInMillis": 0
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "discussionId": 0,
- "id": 0,
- "modifiedAt": "2019-08-24T14:15:22Z",
- "text": "string"
}
}
Deletes the comment specified in the URL.
sheetId required | number Sheet Id of the sheet being accessed. |
commentId required | string ID of the comment |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl https://api.smartsheet.com/2.0/sheets/{sheetId}/comments/{commentId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789" \ -X 'DELETE'
{- "version": 0,
- "message": "SUCCESS",
- "resultCode": 0
}
Adds a comment to a discussion. To create a comment with an attachment please use "multipart/form-data" content type.
sheetId required | number Sheet Id of the sheet being accessed. |
discussionId required | string ID of the discussion |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
Content-Type | string Default: application/json Required for POST and PUT requests. Defines the structure for the request body. |
text | string Comment body. |
{- "text": "string"
}
{- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "attachments": [
- {
- "id": 0,
- "parentId": 0,
- "attachmentType": "BOX_COM",
- "attachmentSubType": "DOCUMENT",
- "mimeType": "PNG",
- "parentType": "COMMENT",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "name": "string",
- "sizeInKb": 0,
- "url": "string",
- "urlExpiresInMillis": 0
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "discussionId": 0,
- "id": 0,
- "modifiedAt": "2019-08-24T14:15:22Z",
- "text": "string"
}
}