# Moderator
Moderators have ability to hide, set submission as NSFW or newsworthy and approve or disapprove reported submissions.
# Hide submission
In order to hide submission request method has to be POST, and in order to revert that you send request with method DELETE
# Resource URL
https://humtog.com/api/submissions/:submission_id/hide
# Resource Method
POST, DELETE
# Example Response
When you set submission status as hidden:
{
"message": "Submission is now hidden."
}
When you remove hidden status:
{
"message": "Submission is no longer hidden."
}
# Change NSFW status
In order to change submission NSFW status send request with method POST, and in order to revert that you send request with method DELETE
# Resource URL
https://humtog.com/api/submissions/:submission_id/nsfw
# Resource Method
POST, DELETE
# Example Response
When you set submission status as NSFW:
{
"message": "Submission is no longer safe for work."
}
When you remove NSFW status:
{
"message": "Submission is now safe for work."
}
# Change newsworthy status
In order to change submission newsworthy status send request with method POST, and in order to revert that you send request with method DELETE
# Resource URL
https://humtog.com/api/submissions/:submission_id/newsworthy
# Resource Method
POST, DELETE
# Example Response
When you set submission status as newsworthy:
{
"message": "Submission is now newsworthy."
}
When you remove newsworthy status:
{
"message": "Submission is no longer newsworthy."
}
# List Reported Submissions
Moderators can see all submissions reported by users.
# Resource URL
https://humtog.com/api/channels/:channel_id/submissions/reported
# Resource Method
POST
# Params
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
type | Yes | string | unsolved | List solved or unsolved submissions |
# Example Response
{
"data": [
{
"id": 1,
"user_id": 1,
"channel_id": 1,
"description": null,
"subject": "It's spam",
"submission_id": 25,
"created_at": "2020-05-23 10:38:03",
"solved_at": null
}
],
"links": {
"first": "https://humtog.com/api/channels/1/submissions/reported?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"path": "https://humtog.com/api/channels/1/submissions/reported",
"per_page": 50,
"to": 1
}
}
# Approve/Disapprove Reported Comments
# Resource URL
https://humtog.com/api/submissions/:submission_id/approve
https://humtog.com/api/submissions/:submission_id/disapprove
# Resource Method
POST
# Example Response
{
"message": "Submission approved"
}
{
"message": "Submission deleted successfully"
}
← Users CRUD Methods →