Upload Post icon

Upload Post

Upload content to social media via Upload-Post API

Actions118

Comment → Comment Action

AI-generated

Summary

Moderate an Instagram comment via specified action (hide, like, pin, unhide, unlike, unpin).

Inputs

  • instagramUser (required) — Choose from your created profiles or specify an ID using an expression.
  • instagramCommentId (required) — The ID of the comment to act on (from Get Post Comments).
  • commentActionPlatform (required) — Network the comment lives on. TikTok is the network that answers this question today; other platforms may reply platform_not_supported.
  • commentModerationAction (required) — What to do with the comment. Each action carries its own inverse: hide/unhide change visibility, like/unlike react, pin/unpin move to top of thread.
  • commentActionPostId (required) — Native ID of the post the comment hangs from. Required to hide, unhide, pin or unpin; not sent for like or unlike, which the API rejects when it carries a post.

Output shape

not explicitly declared in the provided metadata

The commentActionPostId parameter is only visually required in the UI when commentModerationAction is hide, unhide, pin, or unpin; for like/unlike, the API does not accept a post ID and it should not be provided.

Examples

Example 1: Hide a specific comment

Select a user profile, provide the comment ID from Get Post Comments, set action to Hide, and supply the post's native ID.

Example 2: Like a comment without a post ID

Select a user profile and the comment ID, set action to Like; the post ID field is present but not sent to the API.

Links

Discussion