Overview

public. Mark a comment as being deleted. This hides comment content from non admins

Uri Parameters
NameTypeDescription
commentnumberintidentifies the comment on the page
pageidstringeither an integer page ID, "home", or "=" followed by a double uri-encoded page title
Query Parameters
NameTypeDescription
authenticatebool?Force authentication for request (default: false)
Return Codes
NameValueDescription
BadRequest400Invalid input parameter or request body
Forbidden403Administrator access or comment author is required
NotFound404The requested comment could not be found
Ok200The request completed successfully

Message Format

None

Implementation Notes

Use GET:pages/{pageid}/comments to retrieve a list of comments on a specified page.

Code Samples

The following code example deletes the second comment on the home page:

Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("pages", "home", "comments", "2").Delete();
Tag page
You must login to post a comment.