Has anyone ever created a shareable link to a Box file via fusion before?
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @OmahaOmaha,
Could you please elaborate on how do you see this functionality working, that you have a workfront fusion link that would download the file, preview the file or something else?
Maybe write it in a way
Thank you in advance.
Best regards,
Ivan
Views
Replies
Total Likes
Sure, I have a scenario that uploads files to box. I trying to create another scenario that makes a shareable link for that BOX file, so that I can then share the file with users who do not have access to our instance of BOX.
Currently I'm attempting to use the BOX make API call module to pull this off:
URL: /files/{{55.`DE:BOX Document ID`}}/shared_links
Body: {
"access": "open",
"permissions": {
"can_download": true,
"can_preview": true
}
}
but this errors out when I run it.
Views
Replies
Total Likes
Hi @OmahaOmaha ,
After a bit of digging it seems that the URL that you have in the Workfront module is incorrect, per official Box documentation https://developer.box.com/reference/put-files-id--add-shared-link/ it should be a PUT request with
/files/{{55.`DE:BOX Document ID`}}?fields=shared_linkand the body per some examples can be found
{
"shared_link": {
"access": "open",
"password": "do-not-use-this-password",
"unshared_at": "2022-12-12T10:53:43-08:00",
"vanity_name": "my-shared-link",
"permissions": {
"can_view": true,
"can_download": true,
"can_edit": true
}
}
}also for the details on each field please check https://developer.box.com/reference/put-files-id--add-shared-link/#body-parameters and adapt the request to your needs.
Hopefully this helps.
Best regards,
Ivan
Views
Replies
Total Likes