This topic describes how to call an operation to stop video moderation tasks. It intends to help you construct an HTTP call request.

  • For more information about how to construct an HTTP request, see Request structure.
  • You can also select an existing HTTP request. For more information, see SDK reference.

Description

Operation: /green/video/cancelscan

You can call this operation to stop video moderation tasks being performed by the /green/video/asyncscan operation at any time.

Note You are not charged for calling this operation. However, you can call this operation to stop moderating only video streams, but not videos.

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 object. The following table describes the parameter that the JSON object contains.

Parameter Type Required Description
body JSON array Yes The list of IDs of moderation tasks you want to stop. You can specify up to 100 task IDs.

Response parameters

The data parameter in the response body is a JSON array. The following table describes the parameters that each element of the JSON array contains.

Parameter Type Required Description
code Integer Yes The HTTP status code returned for the moderation task. A value of 200 indicates a successful call.
msg String Yes The message returned for the moderation task.
dataId String No The ID of the moderated video, which you specify in the dataId parameter of the moderation request.
taskId String Yes The ID returned by the Content Moderation server, which uniquely identifies the moderation task.

Examples

Sample requests
[
  "taskId1",
  "taskId2"
]
Sample success responses
{
    "code":200,
    "msg":"OK",
    "requestId":"AD87F1D1-A675-4F82-8D67-ED43B6FFA876",
    "data":[
        {
            "code":200,
            "msg":"ok",
            "dataId":"some dataId 1 ",
            "taskId":"taskId1"
        },
        {
            "code":200,
            "msg":"ok",
            "dataId":"some dataId 2",
            "taskId":"taskId2"
        }
    ]
}