Modifies a video category.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateCategory

The operation that you want to perform. Set the value to UpdateCategory.

CateId Long Yes 1000171837

The ID of the category.

CateName String Yes Category name on Alibaba Cloud

The name of the category.

  • The value can be up to 64 bytes in length.
  • The string must be encoded in the UTF-8 format.

Response parameters

Parameter Type Example Description
RequestId String 25818875-5F78-4A*****F6-D7393642CA58

The ID of the request.

Examples

Sample requests

https://vod.aliyuncs.com/?Action=UpdateCategory
&CateId=1000171837
&CateName=Category name on Alibaba Cloud
&<Common request parameters>

Sample success responses

XML format

<UpdateCategoryResponse>
      <RequestId>25818875-5F78-4A*****F6-D7393642CA58</RequestId>
</UpdateCategoryResponse>

JSON format

{
    "RequestId": "25818875-5F78-4A*****F6-D7393642CA58"
}

Error codes

For a list of error codes, visit the API Error Center.

Common errors

The following table describes the common errors that this operation can return.

Error code

Error message

HTTP status code

Description

InvalidCateId.NotFound

The CateId not exist.

404

The error message returned because the specified category ID does not exist.

SDK examples

We recommend that you use a server SDK to call this operation. For more information about the sample code that is used to call this operation in various languages, see the following topics: