Close Report
To close a report in the moderation system, use the closeReport()
function. This function allows moderators to mark reports as resolved.
Steps to Close a Report
- Use the
closeReport()
function provided by thelmFeedClient
object. - Create an instance of
CloseReportRequest
using its builder pattern. - Pass the request object to the
closeReport()
function. - Handle the response accordingly.
try {
const closeReportRequest = CloseReportRequest.builder()
.setReportId(reportId) // Provide the report ID to close
.build();
const response = await lmFeedClient.closeReport(closeReportRequest);
// Handle response as needed
} catch (error) {
// Handle error as needed
}
Models
CloseReportRequest
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
reportId | int | ID of the report to be closed |