Skip to main content

Rename file

Give a file a new name in the same folder.

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

Inputs​

InputTypeRequiredDefaultWhat it is
File IDStringYesFile to rename.
New nameStringYesNew file name including the extension, e.g. Q4-report.xlsx.
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.