Edit comment
Edit the body of a comment the connected account posted. Supported on Reddit only.
Reddit keeps the same comment id after an edit. Reddit exposes no API to edit a post
title, and a link post has no editable body. To edit a published post's body, use
POST /v1/posts/{postId}/edit.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.comments.editInboxComment({ path: { postId: 'post_abc123', commentId: 'comment_abc123', }, body: { accountId: 'account_abc123', platform: 'reddit', content: 'Hello, world!', },});console.log(data);{ "status": "success", "commentId": "t1_xyz789", "platform": "reddit"}Delete comment
Delete a comment on a post. Supported by Facebook, Instagram, Threads, LinkedIn, Reddit, Bluesky, X (Twitter), YouTube, and TikTok (accounts connected through the TikTok for Business app). Not supported on Google Business (reviews only). Requires accountId and commentId query parameters.
Hide comment
Hide a comment on a post. Supported by Facebook, Instagram, Threads, X, and TikTok (accounts connected through the TikTok for Business app). Hidden comments are only visible to the commenter and page admin. For X, the reply must belong to a conversation started by the authenticated user.