AUTHENTICATED
scope can add a comment to the own post or
to a post created by any user from the network by executing of the createPostComment
mutation.
The current API user will be set as an author.
Mutation has a single required incoming argument - data
that represents PostCommentCreationInput
object:
Parameter | Type | Description |
---|---|---|
text | String | Required. The comment body text. Available HTML tags are: <a> , <p> , <br> . Any other tag will be trimmed. |
parentPostId | ID | Required. ID of the post that should be commented. Warning: once the comment was created, this property cannot be updated. |
imagesBase64 | [UploadedFileInput ] | The list of comment images, each one should be formatted as base64 string. Up to 10 images can be shared, max file size - 20Mb. Allowed extensions: png, jpg, jpeg, gif. Leave empty to not attach any images to the post. Warning: once the comment was created, this property cannot be updated. |
filesBase64 | [UploadedFileInput ] | The list of post comment, each one should be formatted as base64 string. Up to 10 files can be shared, max file size - 20Mb. Allowed extensions: txt, pdf, doc, docx, xls, xlsx, ppt, pptx, svg. Leave empty to not attach any files to the post. Warning: once the comment was created, this property cannot be updated. |
Extra content (like a training or a certificate) cannot be shared in a comment.
Also, you cannot add a comment to another comment (only posts can be commented).
Post
object. Detailed description and the full list of available properties can be found here.