Appearance
/public/comment/{commentId}
Delete a comment from the platform. This endpoint removes a comment associated with content on the social media platform, useful for comment moderation or removing unwanted comments.
Authorization: Basic Base64(AccessKey:SecretKey)
commentId
string
curl -X DELETE "https://api.repliz.com/public/comment/680affa5ce12f2f72916f67e" \ -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
import axios from 'axios'; const commentId = '680affa5ce12f2f72916f67e'; const response = await axios.delete(`https://api.repliz.com/public/comment/${commentId}`, { auth: { username: 'YOUR_ACCESS_KEY', password: 'YOUR_SECRET_KEY' } }); console.log(response.status);
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY'); const commentId = '680affa5ce12f2f72916f67e'; const response = await fetch(`https://api.repliz.com/public/comment/${commentId}`, { method: 'DELETE', headers: { 'Authorization': `Basic ${credentials}` } }); console.log(response.status);
// No content returned on success
{ "code": 404, "message": "comment not found" }
{ "code": 401, "message": "unauthorized" }
Delete Comment
DELETE/public/comment/{commentId}Delete a comment from the platform. This endpoint removes a comment associated with content on the social media platform, useful for comment moderation or removing unwanted comments.
Endpoint Details
Authorization: Basic Base64(AccessKey:SecretKey))Parameters
commentIdstringExample Request
Response