Hide or unhide a comment

Hide or unhide a comment on an Instagram post managed by Outstand.

Hide or unhide a comment on an Instagram post managed by Outstand. Provide Outstand's post ID in the path and the comment's Instagram-specific ID as commentId, and set hidden in the body. Use platform_post_id or account_username to select which connected account's credentials to use (optional when the post was published to only one account).

Hiding is the only mutable operation the Instagram Graph API exposes on a published comment - comment text cannot be edited via the API.

PATCH/v1/instagram/posts/{postId}/comments/{commentId}

Path Parameters

postIdstring
commentIdstring
hiddenboolean

Set to true to hide the comment, or false to unhide it.

platform_post_id?string

The platform-specific post ID of the account whose credentials should be used. Optional when the post was published to only one account.

account_username?string

The username or nickname of the connected account whose credentials should be used. Optional when the post was published to only one account.

Response Body

const body = JSON.stringify({  "hidden": true})fetch("https://api.outstand.so/v1/instagram/posts/string/comments/string", {  method: "PATCH",  headers: {    "Content-Type": "application/json"  },  body})
{
  "success": true
}
{
  "success": false,
  "error": "Post not found"
}
{
  "success": false,
  "error": "Post not found"
}
{
  "success": false,
  "error": "Internal server error"
}