Provides feedback if image moderation results returned by Alibaba Cloud Content Moderation are invalid. Your suggestion will take effect the next time you moderate the same image.
Description
Operation: /green/image/feedback
QPS limit
You can send up to 20 requests per second to call this operation by using your Alibaba Cloud account. If you send an excessive number of requests, throttling is implemented, and your business may be affected.
Request parameters
For more information about the common request parameters that must be included in all Content Moderation API requests, see Common parameters.
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
taskId | String | No | xxx | The ID returned by the Content Moderation server, which uniquely identifies the moderation task. |
suggestion | String | No | block | The moderation result you expect to return. If you specify this parameter, you must
specify the scenes parameter. Valid values:
|
url | String | No | http://www.aliyundoc.com | To add the image to the feedback-based image library in the Alibaba Cloud Content Moderation console, you must specify this parameter. |
scenes | StringArray | No | ["ad","terrorism"] | The scenario of image moderation. Valid values:
Note You can specify multiple moderation scenarios. For example, you can specify both porn
and terrorism in the
scenes parameter to indicate pornography detection and terrorist content detection scenarios.
|
note | String | No | xxx | The description of the DNS record. |
label | String | No | normal | The expected category of moderation results for the moderated image in the specified moderation scenario. For more information about the valid values of this parameter, see Parameters scenes and label in Synchronous moderation. |
Response parameters
The data parameter in the response body is empty. For more information about common response parameters that this operation returns, see Common response parameters.
Examples
http(s)://[Endpoint]/green/image/feedback
&<Common request parameters>
{
"suggestion": "block",
"scenes":[
"ad",
"terrorism"
],
"url": "http://www.aliyundoc.com"
}
{
"code": 200,
"msg": "OK",
"requestId": "EE5A1189-4D7B-4C24-AD78-4C1FAA3E7A0C"
}