Posts

Comment a post or reply to a post comment.

post/api/v1/posts/{post_id}/comments

Request

Path parameters

post_idstring required

The ID of the associated post. <br> Linkedin: use the social_id from the post object (GET post or list posts). The post id visible in url will not work in all case, you can refer here for more details : https://developer.unipile.com/docs/posts-and-comments <br> Instagram Post short code dont work on this route, please use the provider_id instead.

Request body multipart/form-data

account_idstring required

The id of the account to perform the request from.

textstring required

Linkedin: You can add a mention by inserting the index of the corresponding entry from the mentions array between two double braces. Example: Hey {{0}}, check this out ! <br> Instagram: You can mention users by inserting their username in the text, like @username.

external_linkstring

Linkedin only An external link that should be displayed within a preview card. The URL must also be included in the post textual content. Otherwise, it will be automatically added at the end.

as_organizationstring

Linkedin only Provide the ID of an organization over which you have control to perform the action on its behalf.

comment_idstring

The id of the comment to reply to. Linkedin: use the comment id returned by the comments list.

attachmentsstring[]

On linkedin, only one image file is accepted with a resolution limited to 6012px x 6012px max.

Response

Created. Comment sent successfully.

object'CommentSent' required
comment_idstring

Changes

    • warning

      added the new errors/password_reset_required enum value to the response property for the response status