Skip to main content
PUT
Needs comments:update, and a role in the post’s workspace that can edit comments. Only the comment’s author can edit it. See Permissions.
Changes only the fields you send. media replaces the comment’s media; send [] to remove it all. The comment must keep text or media. quote, anchor and mentions are for team comments, and only the people mentions adds are told. The edit changes PostSyncer’s copy only: a reply already sent to a network stays there as it went out.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

comment
integer
required

The comment's id.

Body

application/json

Send only what changes. The comment must keep text or media.

content
string | null

The new text. "" or null removes it, if the comment keeps media.

Maximum string length: 65535
media
(integer | string<uri>)[] | null

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. The list replaces the comment's media; [] or null removes it, if the comment keeps text.

Maximum array length: 10
quote
string | null

Team comments only: the words of the post this comment is about. Blank counts as none.

Maximum string length: 500
anchor
object | null

Team comments only: where the quoted words are.

mentions
integer[] | null

Team 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: 50

Response

The comment, not wrapped in data.

A comment on a post: from a network (source: SOCIAL), or written in PostSyncer (team, approval and share-link comments). mentions, media, replies and user are left out of a reply's parent_comment.

id
integer
required
user_id
integer | null
required

The PostSyncer member behind it: who wrote a team comment or a reply sent from PostSyncer (an auto-reply has the post's author, or the workspace owner). On a comment read from a network, the member who connected the account when the connected account itself wrote it. Null on other people's comments from a network and on a client's share-link comment.

crm_contact_id
integer | null
required

The CRM contact saved for the commenter of a comment read from a network, whatever contact collection is set to. Null on team, approval and share-link comments, on replies sent from PostSyncer, and when the network withheld the author.

post_id
integer
required
platform_post_id
integer | null
required

The post's copy on one account (a platforms[].id of the post) that the comment is on. Null on team, approval and share-link comments.

parent_comment_id
integer | null
required

The comment this one answers; null on a top-level comment.

source
enum<string>
required

SOCIAL: from a network, or a reply to one sent from PostSyncer. INTERNAL: a team comment, which stays in PostSyncer. APPROVAL: a note left when approving or asking for changes. PUBLIC_SHARE: a client's comment on the post's share link.

Available options:
SOCIAL,
INTERNAL,
APPROVAL,
PUBLIC_SHARE
comment_url
string | null
required

A link to the comment, or to the post it is on, on the network. Null when the network gives none.

platform
string | null
required

The network, like instagram. Null on team, approval and share-link comments.

platform_post_comment_id
string | null
required

The comment's id on the network. Null on a reply that hasn't gone out yet, and on comments that stay in PostSyncer.

author_name
string | null
required

The member's name when a member wrote it; else the name or handle the network gives.

author_avatar_url
string | null
required
content
string | null
required

The text. Null on a comment with only media. An Instagram comment with a picture Instagram doesn't share has "": see media_hidden_by_platform.

moderation_message
string | null
required

What moderation did, in words.

moderation_reason
string | null
required

Why moderation acted on the comment. On a comment moderation removed (is_deleted_on_platform true), the rule it broke: remove_all_comments, urls_detected, emails_detected, phone_numbers_detected, mentions_detected, hashtags_detected, keywords_detected, profanity_detected, negativity_detected or custom_topics_detected. On a reply the auto-reply sent: ai_reply_generated. Null when moderation did nothing, as on a comment its author deleted.

is_resolved
boolean | null
required

The thread is marked resolved. Null only in the answer to Create a comment when the request left it out; it is stored as false.

is_approved
boolean | null
required

A flag of your own, set when the comment was created. Null when it wasn't set.

is_deleted_on_platform
boolean | null
required

Removed on the network: deleted from PostSyncer (on YouTube, someone else's comment is rejected, which can't be undone), by moderation, or by its author. On Bluesky, a delete or moderation also marks someone else's reply true, though it stays up there. Null only in the answer to Create a comment.

is_hidden_on_platform
boolean | null
required

Hidden on the network: by Hide, by moderation, or by a delete on X or Threads, which hide instead of deleting someone else's comment. Null only in the answer to Create a comment.

media_hidden_by_platform
boolean
required

Instagram: the comment holds a GIF, sticker or photo Instagram doesn't share. Instagram sends such a comment with no text, so its content is "" (an empty string) and its media is []. False on every other comment.

needs_reply
boolean
required

A top-level social comment that asks something (?, ؟ or ?), is not hidden or deleted, and has no reply from the workspace yet. A reply counts as the workspace's when it was sent from PostSyncer or written by the connected account in the network's own app.

quote
string | null
required

Team comments: the words of the post this comment is about.

anchor
object | null
required

Team comments: where the quoted words are.

account_id
integer | null
required

A social comment: which of the post's connected accounts it is on, the one a reply to it is sent as. Null on team, client and approval comments.

account
object | null
required

The account account_id names. Null with it.

likes_count
integer | null
required

The likes the network counted when PostSyncer last read the comment. Null when not known: team and client comments, replies sent from PostSyncer, Instagram and Threads.

created_at
string<date-time>
required

UTC, ISO 8601.

updated_at
string<date-time>
required

UTC, ISO 8601.

mentions
object[]

Team comments: the people it tags. Picture and name only, never an email.

parent_comment
object | null

Get, create and update only: the comment this one answers, without its mentions, media, replies or user. Null on a top-level comment.

replies
array

The answers to it, nested up to five levels. On a list with include_replies=false it is left out.

media
object[]

A social comment: the photos, GIFs, videos and audio clips in it, in the order the comment shows them. A team comment: its attachments. Instagram doesn't share the pictures in comments, so an Instagram comment has none. On Threads, a GIF in a reply with text isn't kept.

user
object

The member who wrote it. Left out when user_id is null.