Preflight check before upload
OPTIONS https://{{api.box.com}}/2.0/files/content
Performs a check to verify that a file will be accepted by Box
https://developer.box.com/reference/options-files-content
Request Body
{"name"=>"File.mp4", "size"=>1024, "parent"=>{"id"=>"123"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"upload_url":"https://upload-las.app.box.com/api/2.0/files/content?upload_session_id=1234","upload_token":"Pc3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQP"}