Skip to main content

Move file

Move a file to another folder. Can replace a file of the same name there, which then goes to the Box trash.

Command in the Box toolkit · id ooa.box/move_file · 6 inputs (3 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
File IDStringYesFile to move.
Target folder IDStringYesFolder to move it into.
Access tokenCredentialYesBox access token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
As userStringNoAct on behalf of this Box user id (needs an admin or service account token). Leave empty to act as yourself.
Endpoint addressStringNohttps://api.box.comBox API address. Leave the default unless your administrator gives you another.
OverwriteBooleanNofalseIf a file of the same name is already in the target folder, move that file to the trash and then move this one.