Copy file
Copy a file into a folder, optionally under a new name. Can replace a file of the same name there by adding the copy as its new version.
Command in the Box toolkit · id ooa.box/copy_file · 8 inputs (3 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| File ID | String | Yes | File to copy. | |
| Target folder ID | String | Yes | Folder that receives the copy. | |
| New name | String | No | Name for the copy. Leave empty to keep the same name. | |
| Access token | Credential | Yes | Box access token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| As user | String | No | Act on behalf of this Box user id (needs an admin or service account token). Leave empty to act as yourself. | |
| Endpoint address | String | No | https://api.box.com | Box API address. Leave the default unless your administrator gives you another. |
| Overwrite | Boolean | No | false | If a file of the same name is already in the target folder, upload the copy as a new version of that file instead of failing. |
| Upload address (URL) | String | No | https://upload.box.com | Box upload address. Leave the default unless your administrator gives you another. |
Outputs
| Output | Type | What it is |
|---|---|---|
| file_id | String | Id of the copy. |