Previous version ID that the client side is aware of. Similar to If-Match in HTTP reuqest, if this field is set:
If the file version matches, update will be performed;
If latest file version does not match this value, conflict error will be raised.
Example:
bOn4j
Header Params
Content-Length
integerÂ
required
Length of the request body.
Example:
2164321
X-Cr-Purchase-Ticket
stringÂ
optional
Can be used to authenticate to paid share links with a anonymous identity. The ticket value can be obtained after an anonymous user purchase a paid share link.
Example:
1f63aa26-edc0-40ce-950a-cb4d4323158e
Body Params application/octet-stream
Not configured
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
Responses
🟢200Success
application/json
Body
data
objectÂ
required
Response content. In some error type, e.g. lock conflicting errors, this field wil present details of the error, e.g. who is locking the current file.
type
enum<integer>Â
required
Type of this file.
Allowed values:
01
id
stringÂ
required
ID of this file.
name
stringÂ
required
Name of this file.It might not be expected display name. For files under trash bin, this field is a non-readable UUID. The expected display name should be retrieved from metadata with name sys:restore_uri, which can be parsed as a URI.
Example:
btn_google_signin_dark_normal_web@2x.png
permission
string  | nullÂ
optional
Boolset encoded permissions granted by current authenticated user. For null, all permissions are granted. Permission definition can be found at File Permissions
created_at
string <date-time>
required
Datetime when the file is created.
Example:
2025-05-24T10:55:22+08:00
updated_at
string <date-time>
required
Datetime when the file is last updated.
Example:
2025-05-24T10:55:22+08:00
size
integerÂ
required
Size of the file, also the size of current primary version blob.