{ "opencollection": "1.0.0", "info": { "name": "Box Authorize Authorization Uploads API", "version": "1.0" }, "items": [ { "info": { "name": "Uploads", "type": "folder" }, "items": [ { "info": { "name": "Box Upload file version", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/files/:file_id/content", "headers": [ { "name": "if-match", "value": "1" }, { "name": "content-md5", "value": "134b65991ed521fcfe4724b7d814ab8ded5185dc" } ], "params": [ { "name": "file_id", "value": "12345", "type": "path", "description": "The unique identifier that represents a file.\n\nThe ID for any file can be determined\nby visiting a file in the web application\nand copying the ID from the URL. For example,\nfor the URL `https://*.app.box.com/files/123`\nthe `file_id` is `123`." }, { "name": "fields", "value": "id,type,name", "type": "query", "description": "A comma-separated list of attributes to include in the\nresponse. This can be used to request fields that are\nnot normally returned in a standard response.\n\nBe aware that specifying this parameter will have the\neffect that none of the standard fields are returned in\nthe response unless explicitly specified, instead only\nfields for the mini representation are returned, additional\nto the fields requested." } ], "body": { "type": "multipart-form", "data": [ { "name": "attributes", "type": "text", "value": "" }, { "name": "file", "type": "text", "value": "" } ] } }, "docs": "Update a file's content. For file sizes over 50MB we recommend\nusing the Chunk Upload APIs.\n\n# Request body order\n\nThe `attributes` part of the body must come **before** the\n`file` part. Requests that do not follow this format when\nuploading the file will receive a HTTP `400` error with a\n`metadata_after_file_contents` error code." }, { "info": { "name": "Box Upload file", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/files/content", "headers": [ { "name": "content-md5", "value": "134b65991ed521fcfe4724b7d814ab8ded5185dc" } ], "params": [ { "name": "fields", "value": "id,type,name", "type": "query", "description": "A comma-separated list of attributes to include in the\nresponse. This can be used to request fields that are\nnot normally returned in a standard response.\n\nBe aware that specifying this parameter will have the\neffect that none of the standard fields are returned in\nthe response unless explicitly specified, instead only\nfields for the mini representation are returned, additional\nto the fields requested." } ], "body": { "type": "multipart-form", "data": [ { "name": "attributes", "type": "text", "value": "" }, { "name": "file", "type": "text", "value": "" } ] } }, "docs": "Uploads a small file to Box. For file sizes over 50MB we recommend\nusing the Chunk Upload APIs.\n\n# Request body order\n\nThe `attributes` part of the body must come **before** the\n`file` part. Requests that do not follow this format when\nuploading the file will receive a HTTP `400` error with a\n`metadata_after_file_contents` error code." } ] } ], "bundled": true }