Modifies the information about a file instead of the file data.
Debugging
Authorization information
Request syntax
POST /v2/file/update HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| body | object | No | The request parameters. | |
| drive_id | string | Yes | The drive ID. | 1 |
| file_id | string | Yes | The file ID. | 9520943DC264 |
| name | string | No | The name of the file. The name can be up to 1,024 bytes in length based on the UTF-8 encoding rule. | a.jpg |
| description | string | No | The description of the file. The description can be up to 1,024 characters in length. | |
| labels | array | No | The tags of the file. You can specify up to 100 tags. | |
| string | No | The tag of the file. The tag can be up to 128 characters in length. | ||
| check_name_mode | string | No | The processing method that is used if the file that you want to modify has the same name as an existing file on the cloud. Valid values: ignore: allows you to modify the file by using the same name as an existing file on the cloud. auto_rename: automatically renames the file that has the same name on the cloud. By default, the current point in time is added to the end of the file name. Example: xxx_20060102_150405. refuse: does not modify the file that you want to modify but returns the information about the file that has the same name on the cloud. Default value: ignore. | ignore |
| local_modified_at | string | No | The local time when the file was modified. The time is in the yyyy-MM-ddTHH:mm:ssZ format based on the UTC+0 time zone. | 2019-08-20T06:51:27.292Z |
| hidden | ||||
| starred | boolean | No | Specifies whether to add the file to favorites. | true |
Response parameters
Error codes
For a list of error codes, visit the Service error codes.
