Comments
Create a comment
Add a team comment to a post, or reply to a comment as the account it is on.
POST
Needs
comments:create, and a role in the post’s workspace that can add comments. See Permissions.parent_comment_id the comment is a team comment (source: INTERNAL) and stays in PostSyncer. With it, the comment is a reply and takes the parent’s source, network and copy of the post. A reply in a thread a client started on the share link is INTERNAL, and the client sees it on the link.
A reply under a SOCIAL comment is sent to its network right after the answer, as the account in the parent’s account_id. platform_post_comment_id is filled once it is out. If the network refuses it, the reply is removed and the post’s comments in the app say why, so read the comment again to know it went out.
A comment needs text or media. media takes up to 10 pictures or videos, as library ids or https:// links (copied into the library first), and no documents. quote, anchor and mentions are for team comments only; each person in mentions gets the comment.mentioned notification once. In the answer, is_deleted_on_platform, is_hidden_on_platform and an is_resolved you didn’t send are null; Get the comment gives their values.
Errors
Related
- List people to mention: the ids
mentionstakes. - Answer comments: reply as the right account.
Authorizations
Body
application/json
Text, media or both: a comment needs one of them.
Up to 10 pictures or videos: media library ids of the post's workspace, or public https:// links, which are copied into the library first (as for a post's content[].media). JPEG, PNG, GIF and WebP pictures; MP4, MOV and WebM videos. No documents.
Maximum array length:
10Team comments only: the people it tags, as user ids from List people to mention. Each person added gets the comment.mentioned notification once; the writer never does.
Maximum array length:
50Response
The comment, in data.