SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
blogs

Moderate a comment: approve, mark as spam, or hide it.

Moderate a comment: approve, mark as spam, or hide it.

PATCHhttps://app.softsolz.uk/api/v1/services/blogs/comments/{id}

Recent Requests

Log in to see full request history
TimeStatusUser Agent
Make a request to see history.

Path Params

idstringrequired

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Idempotency-Keystring

Optional idempotency key for safe retries.

Body Params

statusstring

New moderation status.

Response

Response Body

idstringComment id (numeric string).
post_idstringId of the post this comment belongs to.
parent_idstring | nullId of the parent comment, if a reply.
author_namestringDisplay name.
author_emailstring | nullAuthor email; never shown publicly.
contentstringComment text.
statusstringModeration status.
likesintegerLike count.
source_kindstringHow the comment was submitted.
source_originstring | nullOrigin domain, when submitted via widget.
created_atstringWhen the comment was posted.

Request

import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.blogs.updateComment('<id>', {});
console.log(result);

Credentials

Sent as a Bearer token. Stored only in your browser.

Response · 200

{
"data": {
"id": "string",
"post_id": "string",
"parent_id": "string",
"author_name": "string",
"author_email": "string",
"content": "string",
"status": "string",
"likes": 0,
"source_kind": "string",
"source_origin": "string",
"created_at": "string"
}
}