All Products
Search
Document Center

ApsaraVideo VOD:UpdateVideoInfos

Last Updated:Dec 19, 2024

Modifies the information about multiple videos at a time.

Operation description

The specific parameter of a video is updated only when a new value is passed in the parameter.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vod:UpdateVideoInfosupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
UpdateContentstringYes

The new information about audios or videos. You can modify the information about up to 20 audios or videos at a time. Separate multiple audios or videos with commas (,). When you modify the information exceed 20 audios or videos at a time, the update will fail with an error code CountExceededMax.

The value is a JSON string. For more information, see the UpdateContent section of this topic.

[{"VideoId":"f45cf4eba5cb90233389558c39****","Title":"test title1"},{"VideoId":"f45cf4eba5c84233389558c36****","Title":"test title2"}]

UpdateContent

Note You must convert the UpdateContent[] parameter to a string before you pass it in.
ParameterTypeRequiredDescription
VideoIdStringYesThe ID of the video.
TitleStringNoThe title of the video.
DescriptionStringNoThe description of the video.
TagsStringNoThe tag of the video.
CoverURLStringNoThe URL of the video thumbnail.
CateIdLongNoThe ID of the category.

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The ID of the request.

25818875-5F78-4AF6-D7393642CA58****
ForbiddenVideoIdsarray

The IDs of the videos that cannot be modified. Generally, videos cannot be modified if you do not have required permissions .

VideoIdstring

The IDs of the videos that cannot be modified. Generally, videos cannot be modified if you do not have required permissions .

f45cf4eba5c84233389558c36****
NonExistVideoIdsarray

The IDs of the videos that do not exist.

VideoIdstring

The IDs of the videos that do not exist.

f45cf4eba5cb90233389558c39****

Examples

Sample success responses

JSONformat

{
  "RequestId": "25818875-5F78-4AF6-D7393642CA58****",
  "ForbiddenVideoIds": [
    "f45cf4eba5c84233389558c36****"
  ],
  "NonExistVideoIds": [
    "f45cf4eba5cb90233389558c39****"
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history