UpdateVideoAnalysisTask - Modify an asynchronous Video Understanding task
Modifies the status of a Video Understanding task. Currently, only task cancellation is supported.
Try it out
You can call this operation in OpenAPI Explorer without calculating a signature. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information for this API operation. You can use this information in the Action element of a RAM policy statement to grant a RAM user or RAM role permission to call the operation. The columns are described as follows:
-
Action: a specific permission.
-
Access level: the access level of an action. Valid values: Write, Read, and List.
-
Resource type: the types of resources for which an action supports authorization. Details:
- Required resource types are marked with an asterisk (*).
- Actions that do not support resource-level authorization use
All resources.
-
Condition key: a condition key defined by the cloud service.
-
Dependent action: an additional permission required to perform the action. The caller must also have permission to perform the dependent action.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| quanmiaolightapp:UpdateVideoAnalysisTask | update | *All resources * |
| None |
Request syntax
PUT /{workspaceId}/quanmiao/lightapp/videoAnalysis/updateVideoAnalysisTask HTTP/1.1
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | Unique identifier of the Alibaba Cloud Model Studio workspace: Obtain workspaceId | llm-xxx |
| taskId | string | Yes | The unique task ID | xxxx |
| taskStatus | string | Yes | The task status:
| CANCELED |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | The response | ||
| requestId | string | The unique request ID | 117F5ABE-CF02-5502-9A3F-E56BC9081A64 |
| code | string | The status code | DataNotExists |
| message | string | The error message | The task does not exist. |
| success | boolean | Indicates whether the request succeeded: true indicates success, and false indicates failure | false |
| httpStatusCode | integer | The HTTP status code | 200 |
| data | object | The task information | |
| taskId | string | The unique task ID | 3feb69ed02d9b1a17d0f1a942675d300 |
| taskStatus | string | The task status | CANCELED |
| taskErrorMessage | string | The task failure message | Canceled manually |
Examples
Sample success response
JSON format
{
"requestId": "117F5ABE-CF02-5502-9A3F-E56BC9081A64",
"code": "DataNotExists",
"message": "任务不存在",
"success": false,
"httpStatusCode": 200,
"data": {
"taskId": "3feb69ed02d9b1a17d0f1a942675d300",
"taskStatus": "CANCELED",
"taskErrorMessage": "主动取消"
}
}
Error codes
For more error codes, see Error Center.