Appearance
/public/content/{contentId}/comment/{commentId}
Permanently delete a comment from a specific piece of content on the platform.
Authorization: Basic Base64(AccessKey:SecretKey)
contentId
string
commentId
accountId
curl -X DELETE "https://api.repliz.com/public/content/113958387982006_942538351814577/comment/113958387982006?accountId=680affa5ce12f2f72916f67e" \ -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
import axios from 'axios'; const contentId = '113958387982006_942538351814577'; const commentId = '113958387982006'; const response = await axios.delete(`https://api.repliz.com/public/content/${contentId}/comment/${commentId}`, { auth: { username: 'YOUR_ACCESS_KEY', password: 'YOUR_SECRET_KEY' } }); console.log(response.data);
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY'); const contentId = '113958387982006_942538351814577'; const commentId = '113958387982006'; const response = await fetch(`https://api.repliz.com/public/content/${contentId}/comment/${commentId}`, { method: 'DELETE', headers: { 'Authorization': `Basic ${credentials}` } }); const data = await response.json(); console.log(data);
// No content returned on success
// Account { "code": 404, "message": "account not found" } // Comment { "code": 404, "message": "comment not found" }
{ "code": 401, "message": "unauthorized" }
Remove Comment
DELETE/public/content/{contentId}/comment/{commentId}Permanently delete a comment from a specific piece of content on the platform.
Endpoint Details
Authorization: Basic Base64(AccessKey:SecretKey))Parameters
contentIdstringcommentIdstringaccountIdstringExample Request
Response