This route permanently deletes a comment from the database. It ensures that only authorized users can remove comments.
Send a DELETE request to /comments/{commentId} with the comment ID in the path parameter.
The request will fail if:
Only authenticated users with manager-level permissions can remove comments. Additionally, users can only remove their own comments unless they have site-level permissions.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Content type, must be "application/json".
application/json Session token used for authenticating the request.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"
Unique identifier of the comment.
1
The comment has been deleted