Update Video
Service Address
http://api-az-cn.danghongyun.com/rest
Request Method
POST
Request Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| accessKey | The user access key | String | Required |
| action | API name, this api is "updateVideoInfo" | String | Required |
| version | API version, currently must be 2.0 | String | Required |
| timestamp | Invoke time in milliseconds since january 1 1970, eg: 1466488681033 | String | Required |
| signature | Signature generated by signature rule. | String | Required |
| videoId | video id | String | Required |
| fileName | video name | String | Optional |
| thumbnail | thumbnail url | String | Optional |
| cover | cover url | String | Optional |
| title | video title, Not exceeding 50 characters | String | Optional |
| playNum | video playNum | Integer | Optional |
| categoryId | video category id | Integer | Optional |
| status | video status | Integer | Optional |
| tag | video tag | String | Optional |
| description | video description | String | Optional |
| width | video width | Integer | Optional |
| height | video height | Integer | Optional |
| bitrate | video bitrate | Integer | Optional |
| audioBitrate | audio bitrate | Integer | Optional |
| duration | video duration | Integer | Optional |
Response Example
{
"code":0,
"message":"success",
"result":"",
"success":true
}
Error Codes
| Code | Message |
|---|---|
| 0 | success |
| 10000 | exception |
| 10012 | video_not_exists |
| 10017 | video_not_exists |
| 10201 | api_not_exists |