If you find that image moderation results returned by Alibaba Cloud Content Moderation do not meet your expectations, you can call an operation to provide feedback. Your suggestion will take effect the next time you moderate the same image.

Description

Operation: /green/image/feedback

You can call this operation to give feedback on the result of an image moderation task and provide your expected result.
Note You are not charged for calling this operation.

Request parameters

For more information about the common request parameters that must be included in all Content Moderation API requests, see Common request parameters.

The request body is a JSON structure. The following table describes the parameters that the JSON structure contains.
Parameter Type Required Description
taskId String No The ID returned by the Content Moderation server, which uniquely identifies the moderation task.
suggestion String No The moderation result you expect to return. If you specify this parameter, you must specify the scenes parameter. Valid values:
  • pass: The image is normal.
    Note The image whose moderation result is pass can be automatically added to the whitelist of the feedback-based image library in the Alibaba Cloud Content Moderation console.
  • block: The image contains violations.
url String No The URL for adding the moderated image to the feedback-based image library in the Alibaba Cloud Content Moderation console. To add the image to the feedback-based image library, you must specify this parameter.
scenes String array No The scenario of image moderation. Valid values:
  • porn: pornography detection
  • terrorism: terrorist content detection
  • ad: ad violation detection
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 The description of the moderated image.
label String No The expected category of moderation results for the moderated image in the specified moderation scenario. For more information about valid values, see Parameters scenes and label.

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

Sample requests
{
  "suggestion": "block",
  "scenes":[
    "ad",
    "terrorism"
  ],
  "url": "http://xxx.xxx.xxx.com"
}
Sample success responses
{
  "code": 200, 
  "msg": "OK", 
  "requestId": "EE5A1189-4D7B-4C24-AD78-4C1FAA3E7A0C"
}