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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Item type | String | Yes | Whether the item is a file or a folder. | |
| Item ID | String | Yes | Id of the file or folder. | |
| Access | String | No | company | Who can use the link: open (anyone with the link), company (people in your organization) or collaborators (invited people only). |
| Allow download | Boolean | No | true | Let people with the link download the item. |
| Expires at | DateTime | No | When the link stops working (UTC). Leave empty for no end date. | |
| 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. |
| Allow preview | Boolean | No | true | Let people with the link preview the item (G5). |
Outputs
| Output | Type | What it is |
|---|---|---|
| url | String | Shared link to the item. |
| download_url | String | Direct download link (files only, when downloads are allowed). |