Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to 'Unshare' a shared link via update. #222

Open
4 tasks done
jacquesvandermerwe opened this issue Dec 4, 2020 · 5 comments
Open
4 tasks done

Unable to 'Unshare' a shared link via update. #222

jacquesvandermerwe opened this issue Dec 4, 2020 · 5 comments
Assignees
Labels
bug dontstale For stalebot to keep the issue open

Comments

@jacquesvandermerwe
Copy link

jacquesvandermerwe commented Dec 4, 2020

Description of the Issue

We are unable to issue the following command via the CLI in order to remove a shared link expiry date

 box files:shared-links:update <file_id> --unshared-at="null"
Cannot parse date format "null"
 box files:shared-links:update <file_id> --unshared-at=null
Cannot parse date format "null"

This however works.
box request https://api.box.com/2.0/files/<file-id> -X PUT --body '{"shared_link": {"unshared_at": null}}'

Steps to Reproduce

Issue commands as above

Expected Behavior

allow the unshared-at to use null as an option

Error Message, Including Stack Trace

Screenshots

Versions Used

Box CLI: 2.8
Operating System: macOS Catalina

@sujaygarlanka
Copy link
Contributor

@jacquesvandermerwe The command box files:unshare should be used to unshare i.e. delete a shared-link.

@jacquesvandermerwe
Copy link
Author

jacquesvandermerwe commented Dec 4, 2020

@sujaygarlanka the idea is not to delete the shared link but to remove the expiry date of the existing shared link, hence its an update not a delete

@sujaygarlanka sujaygarlanka reopened this Dec 4, 2020
@salexkidd
Copy link

+1

The Box CLI currently has no way to remove the expiration date of a shared link.
While this is not a fatal bug, I am having trouble with it as well.

@stale
Copy link

stale bot commented Sep 1, 2022

This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.

@stale stale bot added the stale label Sep 1, 2022
@stale
Copy link

stale bot commented Sep 8, 2022

This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box CLI and feel free to open another PR/issue at any time.

@stale stale bot closed this as completed Sep 8, 2022
@mgrytsai mgrytsai added the dontstale For stalebot to keep the issue open label Sep 19, 2022
@mgrytsai mgrytsai reopened this Sep 19, 2022
@stale stale bot removed the stale label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dontstale For stalebot to keep the issue open
Projects
None yet
Development

No branches or pull requests

5 participants