# Moderator
Moderators have ability to change comment types and approve or disapprove reported comments.
# Change Type
Moderator can change type of comments to serious or relaxed.
When performing this action comment will be moved from one to another section, depending on what section comment was.
# Resource URL
https://humtog.com/api/comments/:comment_id/change-type
# Resource Method
POST
# Example Response
{
"message": "Comment type changed successfully"
}
# List Reported Comments
Moderators can see all comments reported by users.
# Resource URL
https://humtog.com/api/channels/:channel_id/comments/reported
# Resource Method
POST
# Params
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
type | Yes | string | unsolved | List solved or unsolved comments |
# Example Response
{
"data": [
{
"id": 1,
"user_id": 1,
"channel_id": 1,
"description": null,
"subject": "It's spam",
"comment_id": 25,
"created_at": "2020-05-23 10:38:03",
"solved_at": null
}
],
"links": {
"first": "https://humtog.com/api/channels/1/comments/reported?page=1",
"last": null,
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"path": "https://humtog.com/api/channels/1/comments/reported",
"per_page": 50,
"to": 1
}
}
# Approve/Disapprove Reported Comments
# Resource URL
https://humtog.com/api/comments/:comment_id/approve
https://humtog.com/api/comments/:comment_id/disapprove
# Resource Method
POST
# Example Response
{
"message": "Comment approved successfully"
}
{
"message": "Comment disapproved successfully"
}