Skip to main content

Create shared link

Create or change the shared link of a file or folder and return the link.

Command in the Box toolkit · id ooa.box/create_shared_link · 9 inputs (3 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Item typeStringYesWhether the item is a file or a folder.
Item IDStringYesId of the file or folder.
AccessStringNocompanyWho can use the link: open (anyone with the link), company (people in your organization) or collaborators (invited people only).
Allow downloadBooleanNotrueLet people with the link download the item.
Expires atDateTimeNoWhen the link stops working (UTC). Leave empty for no end date.
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.
Allow previewBooleanNotrueLet people with the link preview the item (G5).

Outputs​

OutputTypeWhat it is
urlStringShared link to the item.
download_urlStringDirect download link (files only, when downloads are allowed).