Newer Version Available
Comment Input
- Root XML tag
- <comment>
- JSON
- The following example attaches an existing file to a
comment:
1{ 2 "body" : { 3 "messageSegments" : [ 4 { 5 "text" : "FY14 Sales Projections", 6 "type" : "Text" 7 } 8 ] 9 }, 10 "capabilities": { 11 "contentDocumentId":"069D00000001FHF" 12 } 13} - Properties
-
Name Type Description Available Version attachment Depends on type. Optional. Values are: 24.0-31.0 body Message Body Input The body of the comment. Feed item and comment bodies have a 10,000 character limit. Because this limit can change, clients should make a describeSObjects() call on the FeedItem or FeedComment object and look at the length of the Body or CommentBody field to determine the maximum number of allowed characters.
To edit this property in a comment, make a PATCH request to /chatter/comments/commentId. Editing comments is supported in version 34.0 and later.
23.0 capabilities Comment Capabilities Input Capabilities of the comment, such as a file attachment 32.0