UpdateVideoAnalysisTask - Modify an asynchronous Video Understanding task

Updated at:

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.

Try it out

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.

ActionAccess levelResource typeCondition keyDependent action
quanmiaolightapp:UpdateVideoAnalysisTaskupdate
*All resources
*
    None
None

Request syntax

PUT /{workspaceId}/quanmiao/lightapp/videoAnalysis/updateVideoAnalysisTask HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
workspaceIdstringYes

Unique identifier of the Alibaba Cloud Model Studio workspace: Obtain workspaceId

llm-xxx
taskIdstringYes

The unique task ID

xxxx
taskStatusstringYes

The task status:

  • CANCELED: cancel the task
CANCELED

Response parameters

NameTypeDescriptionExample value
object

The response

requestIdstring

The unique request ID

117F5ABE-CF02-5502-9A3F-E56BC9081A64
codestring

The status code

DataNotExists
messagestring

The error message

The task does not exist.
successboolean

Indicates whether the request succeeded: true indicates success, and false indicates failure

false
httpStatusCodeinteger

The HTTP status code

200
dataobject

The task information

taskIdstring

The unique task ID

3feb69ed02d9b1a17d0f1a942675d300
taskStatusstring

The task status

CANCELED
taskErrorMessagestring

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.