Update a comment (hide/unhide)

Update a comment (that was created through Outstand) on the social network it lives on.

Update a comment (that was created through Outstand) on the social network it lives on. The only mutable field the platform APIs expose on a published comment is its visibility, so this hides or unhides the comment. Provide the post ID in the path and the comment's platform-specific ID as replyId, 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). Supported on Instagram and Threads. Note: comment text cannot be edited via the platform APIs.

PATCH/v1/posts/{id}/replies/{replyId}

Path Parameters

idstring
replyIdstring
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 to update the comment. 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/posts/string/replies/string", {  method: "PATCH",  headers: {    "Content-Type": "application/json"  },  body})
{
  "success": true
}
{
  "success": false,
  "error": "Invalid payload",
  "details": {
    "content": {
      "_errors": [
        "Required"
      ]
    }
  }
}
{
  "success": false,
  "error": "Invalid payload",
  "details": {
    "content": {
      "_errors": [
        "Required"
      ]
    }
  }
}
{
  "success": false,
  "error": "Internal server error",
  "message": "Database connection failed"
}