Gets a list of all discussions associated with the specified sheet. Remember that discussions are containers for the conversation thread. To see the entire thread, use the include=comments parameter.
sheetId required | number Sheet Id of the sheet being accessed. |
include | string A comma-separated list of optional elements to include in the response:
|
page | number Default: 1 Which page to return. Defaults to 1 if not specified. If you specify a value greater than the total number of pages, the last page of results is returned. |
pageSize | number Default: 100 The maximum number of items to return per page. Unless otherwise stated for a specific endpoint, defaults to 100. If only page is specified, defaults to a page size of 100. For reports, the default is 100 rows. If you need larger sets of data from your report, returns a maximum of 10,000 rows per request. |
includeAll | boolean Default: false If true, include all results, that is, do not paginate. Mutually exclusive with page and pageSize (they are ignored if includeAll=true is specified). |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl 'https://api.smartsheet.com/2.0/sheets/{sheetId}/discussions?include=comments,attachments' \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": 25,
- "totalCount": 136,
- "data": [
- {
- "accessLevel": "ADMIN",
- "id": 0,
- "comments": [
- {
- "attachments": [
- {
- "id": 0,
- "parentId": 0,
- "attachmentType": "BOX_COM",
- "attachmentSubType": "DOCUMENT",
- "mimeType": "PNG",
- "parentType": "COMMENT",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": null,
- "name": null
}, - "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"
}
], - "commentAttachments": [
- {
- "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
}
], - "commentCount": 0,
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "lastCommentedAt": "2019-08-24T14:15:22Z",
- "lastCommentedUser": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "parentId": 0,
- "parentType": "ROW",
- "readOnly": true,
- "title": "string"
}
]
}
Creates a new discussion on a sheet. To create a discussion with an attachment please use "multipart/form-data" content type.
sheetId required | number Sheet Id of the sheet being accessed. |
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. |
object Comment. |
{- "comment": {
- "text": "string"
}
}
{- "version": 0,
- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "accessLevel": "ADMIN",
- "id": 0,
- "comments": [
- {
- "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"
}
], - "commentAttachments": [
- {
- "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
}
], - "commentCount": 0,
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "lastCommentedAt": "2019-08-24T14:15:22Z",
- "lastCommentedUser": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "parentId": 0,
- "parentType": "ROW",
- "readOnly": true,
- "title": "string"
}
}
Gets the discussion specified by discussionId.
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 |
curl https://api.smartsheet.com/2.0/sheets/{sheetId}/discussions/{discussionId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "accessLevel": "ADMIN",
- "id": 0,
- "comments": [
- {
- "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"
}
], - "commentAttachments": [
- {
- "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
}
], - "commentCount": 0,
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "lastCommentedAt": "2019-08-24T14:15:22Z",
- "lastCommentedUser": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "parentId": 0,
- "parentType": "ROW",
- "readOnly": true,
- "title": "string"
}
Deletes the discussion specified in the URL.
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 |
curl https://api.smartsheet.com/2.0/sheets/{sheetId}/discussions/{discussionId} \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"\ -X 'DELETE'
{- "message": "SUCCESS",
- "resultCode": 0
}
Gets a list of all discussions associated with the specified row. Remember that discussions are containers for the conversation thread. To see the entire thread, use the include=comments parameter.
sheetId required | number Sheet Id of the sheet being accessed. |
rowId required | number Row Id in the sheet being accessed. |
include | string A comma-separated list of optional elements to include in the response:
|
page | number Default: 1 Which page to return. Defaults to 1 if not specified. If you specify a value greater than the total number of pages, the last page of results is returned. |
pageSize | number Default: 100 The maximum number of items to return per page. Unless otherwise stated for a specific endpoint, defaults to 100. If only page is specified, defaults to a page size of 100. For reports, the default is 100 rows. If you need larger sets of data from your report, returns a maximum of 10,000 rows per request. |
includeAll | boolean Default: false If true, include all results, that is, do not paginate. Mutually exclusive with page and pageSize (they are ignored if includeAll=true is specified). |
Authorization | string API Access Token used to authenticate requests to Smartsheet APIs. Example: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789 |
curl 'https://api.smartsheet.com/2.0/sheets/{sheetId}/rows/{rowId}/discussions?include=comments,attachments' \ -H "Authorization: Bearer JKlMNOpQ12RStUVwxYZAbcde3F5g6hijklM789"
{- "pageNumber": 1,
- "pageSize": 50,
- "totalPages": 25,
- "totalCount": 136,
- "data": [
- {
- "accessLevel": "ADMIN",
- "id": 0,
- "comments": [
- {
- "attachments": [
- {
- "id": 0,
- "parentId": 0,
- "attachmentType": "BOX_COM",
- "attachmentSubType": "DOCUMENT",
- "mimeType": "PNG",
- "parentType": "COMMENT",
- "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": {
- "email": null,
- "name": null
}, - "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"
}
], - "commentAttachments": [
- {
- "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
}
], - "commentCount": 0,
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "lastCommentedAt": "2019-08-24T14:15:22Z",
- "lastCommentedUser": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "parentId": 0,
- "parentType": "ROW",
- "readOnly": true,
- "title": "string"
}
]
}
Creates a new discussion on a row. To create a discussion with an attachment please use "multipart/form-data" content type.
sheetId required | number Sheet Id of the sheet being accessed. |
rowId required | number Row Id in the sheet being accessed. |
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. |
object Comment. |
{- "comment": {
- "text": "string"
}
}
{- "version": 0,
- "message": "SUCCESS",
- "resultCode": 0,
- "result": {
- "accessLevel": "ADMIN",
- "id": 0,
- "comments": [
- {
- "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"
}
], - "commentAttachments": [
- {
- "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
}
], - "commentCount": 0,
- "createdBy": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "lastCommentedAt": "2019-08-24T14:15:22Z",
- "lastCommentedUser": {
- "email": "jane.doe@smartsheet.com",
- "name": "Jane Doe"
}, - "parentId": 0,
- "parentType": "ROW",
- "readOnly": true,
- "title": "string"
}
}