Domain name for API request: ams.tencentcloudapi.com.
This API is used to cancel a moderation task. If it returns RequestId
, the task has been canceled successfully.
Default API request rate limit: 20 requests/sec.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: CancelTask. |
Version | Yes | String | Common Params. The value used for this API: 2020-12-29. |
Region | No | String | Common Params. This parameter is not required for this API. |
TaskId | Yes | String | This field indicates the task ID (in the Results parameter) returned after an audio moderation task is created. It is used to identify the moderation task to be canceled. |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to cancel a task.
POST / HTTP/1.1
Host: ams.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CancelTask
<Common request parameters>
{
"TaskId": "task-audio-XwxJtbkKXWgCt8AZ"
}
{
"Response": {
"RequestId": "c933aca1-90d2-4ab8-b045-f1b08069d76f"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
DryRunOperation | DryRun Operation. It means that the request would have succeeded, but the DryRun parameter was used. |
FailedOperation | The operation failed. |
InvalidParameter | The parameter is incorrect. |
InvalidParameterValue | The parameter value is incorrect. |
LimitExceeded | The quota limit is exceeded. |
MissingParameter | The parameter is missing. |
OperationDenied | The operation was denied. |
RequestLimitExceeded | The number of requests exceeds the frequency limit. |
ResourceInUse | The resource is in use. |
ResourceInsufficient | The resource is insufficient. |
ResourceNotFound | The resource does not exist. |
ResourceUnavailable | The resource is unavailable. |
ResourcesSoldOut | The resources have been sold out. |
UnauthorizedOperation | The operation is unauthorized. |
UnknownParameter | The parameter is unknown. |
UnsupportedOperation | The operation is not supported. |
本页内容是否解决了您的问题?