List comments pending moderation
GET {{baseUrl}}/api/v1/communityModeration/comments?status=<String>
This API lists a particular number of comments that are pending moderation, based on the limit defined.
OAuth Scope
Desk.community.READ
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
categoryId | string | ID of the community category from which the comments must be fetched | |
from | string | Index number, starting from which the comments must be listed | |
limit | string | Number of comments to list | |
status | string | Moderation status of the comments. Values allowed are: AWAITINGAPPROVAL , SPAM , and TRASHED . |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"data":[{"summary":"Comment 1","topicPeramlink":"zoho-desk-api","creator":{"photoUrl":"https://desk.zoho.com/api/v1/agents/7000000015971/photo?orgId=123456","name":"user1","id":"7000000015971","label":{"preferences":{"shape":"RECTANGLE","bgColor":"#23F123","textColor":"#2CA123"},"name":"Admin","id":"6000000158001","logoUrl":"https://desk.zoho.com/portal/api/publicImages/6000000158231?orgId=14132"},"type":"END_USER"},"topicId":"4000000019013","trashedBy":null,"subject":"Zoho Desk API","createdTime":"2018-10-16T09:41:40.077Z","id":"4000000019013","categoryId":"4000000019012","status":"AWAITINGAPPROVAL"},{"summary":"Comment 2","topicPeramlink":"zoho-desk-api-features","modifiedTime":"2018-10-16T10:28:59.495Z","creator":{"photoUrl":"https://desk.zoho.com/api/v1/agents/7000000015971/photo?orgId=123456","name":"user 1","id":"7000000015971","label":{"preferences":{"shape":"RECTANGLE","bgColor":"#23F123","textColor":"#2CA123"},"name":"Admin","id":"6000000158001","logoUrl":"https://desk.zoho.com/portal/api/publicImages/6000000158231?orgId=14132"},"type":"END_USER"},"topicId":"4000000019013","trashedBy":null,"subject":"Zoho Desk API Features","createdTime":"2018-10-16T10:21:00.386Z","id":"4000000019029","categoryId":"4000000019012","status":"AWAITINGAPPROVAL"}]}