# Create discussion Creates a new discussion on a sheet. To create a discussion with an attachment please use "multipart/form-data" content type. Endpoint: POST /sheets/{sheetId}/discussions Version: 2.0.0 Security: APIToken, OAuth2 ## Path parameters: - `sheetId` (number, required) ID of the sheet being accessed. ## Header parameters: - `Authorization` (string) API Access Token used to authenticate requests to Smartsheet APIs. - `smartsheet-integration-source` (string) Uses the following metadata to distinguish between human-initiated API requests and third-party service-initiated calls by AI Connectors or ITSM: - Integration source type - Organization name - Integration source name Format: TYPE,OrgName,SourceName Examples: AI,SampleOrg,My-AI-Connector-v2 SCRIPT,SampleOrg2,Accounting-updater-script APPLICATION,SampleOrg3,SheetUpdater Example: "AI,SampleOrg,My-AI-Connector-v2" - `Content-Type` (string) Required for POST and PUT requests. Defines the structure for the request body. ## Request fields (application/json): - `comment` (object) Comment text object. - `comment.text` (string) Comment text. ## Response 200 fields (application/json): - `version` (number,null) New version of the sheet. Applicable only for operations which update sheet data. - `message` (string) Message that indicates the outcome of the request. (One of SUCCESS or PARTIAL_SUCCESS.) Enum: "PARTIAL_SUCCESS", "SUCCESS" - `resultCode` (number) * '0' Success * '3' Partial Success of Bulk Operation Enum: 0, 3 - `result` (object) - `result.accessLevel` (string) Enum: "ADMIN", "COMMENTER", "EDITOR", "EDITOR_SHARE", "OWNER", "VIEWER" - `result.id` (number) Discussion ID. - `result.comments` (array) Array of comments in discussion. Only returned if the include query string parameter contains comments. - `result.comments.attachments` (array) Array of attachments on comments. - `result.comments.attachments.id` (number) Attachment ID. - `result.comments.attachments.parentId` (number) The ID of the parent. - `result.comments.attachments.attachmentType` (string) Attachment type. Note--Dropbox, Egnyte, and Evernote are not supported for Smartsheet.gov accounts. Enum: "BOX_COM", "DROPBOX", "EGNYTE", "EVERNOTE", "FILE", "GOOGLE_DRIVE", "LINK", "ONEDRIVE", "TRELLO" - `result.comments.attachments.attachmentSubType` (string) Attachment sub type. Note--Folder type is for EGNYTE values and the rest are GOOGLE_DRIVE values. Enum: "DOCUMENT", "DRAWING", "FOLDER", "PDF", "PRESENTATION", "SPREADSHEET" - `result.comments.attachments.mimeType` (string) Attachment MIME type. Example: "PNG" - `result.comments.attachments.parentType` (string) The type of object the attachment belongs to. Enum: "COMMENT", "PROOF", "ROW", "SHEET" - `result.comments.attachments.createdAt` (any) - `result.comments.attachments.createdBy` (object) User object containing name and email of the user who created this attachment. - `result.comments.attachments.createdBy.email` (string) Example: "jane.doe@smartsheet.com" - `result.comments.attachments.createdBy.name` (string) Example: "Jane Doe" - `result.comments.attachments.name` (string) Attachment name. - `result.comments.attachments.sizeInKb` (number) The size of the file, if the attachmentType is FILE. - `result.comments.attachments.url` (string) Attachment temporary URL (files only). - `result.comments.attachments.urlExpiresInMillis` (number) Attachment temporary URL time to live (files only). - `result.comments.createdBy` (object) User object containing name and email of the creator of this comment. - `result.comments.discussionId` (number) Discussion ID of discussion that contains comment. - `result.comments.id` (number) Comment ID. - `result.comments.modifiedAt` (any) - `result.comments.text` (string) Comment body. - `result.commentAttachments` (array) Array of attachments on discussion comments. Only returned if the include query string parameter contains attachments. - `result.commentCount` (number) Number of comments in the discussion. - `result.createdBy` (object) User object containing name and email of the user who created the discussion. - `result.lastCommentedAt` (any) - `result.lastCommentedUser` (object) User object containing name and email of the user who last commented on the discussion. - `result.parentId` (number) The ID of the associated row or sheet. - `result.parentType` (string) Type of parent object. Enum: "ROW", "SHEET" - `result.readOnly` (boolean) Indicates whether the user can modify the discussion. - `result.title` (string) Title automatically created by duplicating the first 100 characters of top-level comment.