put https://apidocs.cloud.answerhub.com/services/v2///.json
You can use this API request to send a published node to moderation.
/services/v2/node/[nodeId]/sendToMod.json
You can use the following parameters in your send a node to moderation request:
Other options: wrap, v1
Permissions and Notes:
You must have the Send already published question to moderation permission under Moderation Roles in the Advanced Editor.
We added this request in version 1.6.3.
Sample Request
A PUT send a node to moderation request for a node (nodeId: 841) sent to https://apidocs.cloud.answerhub.com using a human-readable Username/Password (answerhub/test123) would look like this:
curl
-u answerhub:test123
-H "Accept: application/json"
-H "Content-type: application/json"
-X PUT "https://apidocs.cloud.answerhub.com/services/v2/node/841/sendToMod.json" -v
Expected Response
Successful Response:
- HTTP Status 200 - OK
{
"success": true,
"result": {
"sendToModAction": {
"id": 1075,
"ip": "172.20.0.3",
"user": {
"id": 31,
"username": "demo",
"avatarUrl": "https://secure.gravatar.com/avatar/dd3a67e45fb718ed41fae9155c927ddf?d=identicon&r=PG"
},
"realUser": {
"id": 108,
"username": "admin",
"avatarUrl": "https://secure.gravatar.com/avatar/4e955c70eeff0abe1974c9be300a8887?d=identicon&r=PG"
},
"actionDate": "Wed Feb 06 21:02:04 UTC 2019",
"canceled": false,
"extra": null,
"private": true,
"verb": "sent",
"node": {
"id": 841,
"type": "question"
}
}
}
}