UpdateVideoAnalysisTasks

Updated at:

Video Understanding – Batch Cancel Tasks

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:UpdateVideoAnalysisTasksupdate
*All resources
*
    None
None

Request syntax

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

Request parameters

NameTypeRequiredDescriptionExample value
workspaceIdstringYes

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

llm-xxx
taskIdsarrayYes

The list of task IDs

stringYes

The task ID

xxx
taskStatusstringYes

The task status:

  • CANCELED: cancel the task
CANCELED

Response parameters

NameTypeDescriptionExample value
object

Schema of Response

requestIdstring

Id of the request

04DA1A52-4E51-56CB-BA64-FDDA0B53BAE8
codestring

The response code

successful
messagestring

The error message

success
successboolean

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

true
httpStatusCodeinteger

The HTTP status code

200
dataarray<object>

The deletion result

object

The deletion result

taskIdstring

The task ID

xx
taskStatusstring

The task status

CANCELED
taskErrorMessagestring

The task failure message

xx
taskErrorCodestring

The task failure code

xx

Examples

Sample success response

JSON format

{
  "requestId": "04DA1A52-4E51-56CB-BA64-FDDA0B53BAE8",
  "code": "successful",
  "message": "success",
  "success": true,
  "httpStatusCode": 200,
  "data": [
    {
      "taskId": "xx",
      "taskStatus": "CANCELED",
      "taskErrorMessage": "xx",
      "taskErrorCode": "xx"
    }
  ]
}

Error codes

For more error codes, see Error Center.