Skip to content

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

Open

Description

@jacquesvandermerwe

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

Activity

  1. sujaygarlanka commented on Dec 4, 2020

    @sujaygarlanka
    Contributor

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

  2. jacquesvandermerwe commented on Dec 4, 2020

    @jacquesvandermerwe
    Author

    @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

  3. salexkidd commented on Aug 2, 2022

    @salexkidd

    +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.

  4. stale commented on Sep 1, 2022

    @stale

    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.

  5. stale commented on Sep 8, 2022

    @stale

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugdontstaleFor stalebot to keep the issue open

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions