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

Box Folder Locks: Unable to set lock type. #935

Open
jacquesvandermerwe opened this issue Nov 15, 2021 · 1 comment
Open

Box Folder Locks: Unable to set lock type. #935

jacquesvandermerwe opened this issue Nov 15, 2021 · 1 comment
Assignees
Labels
enhancement Added to issues that describes enhancements

Comments

@jacquesvandermerwe
Copy link

jacquesvandermerwe commented Nov 15, 2021

Is your feature request related to a problem? Please describe.

Currently the folder lock option in Java a full lock and doesn't allowed to define the type of lock needs to be created.

Describe the solution you'd like

Allow the locks to be defined as described in the developer documentation, specifically to allow for move and delete locks via the locked_operations
https://developer.box.com/reference/post-folder-locks/

Describe alternatives you've considered

The calls can be made with raw HTTP, but they negate the use of the Java API

Additional context

NA

@jacquesvandermerwe jacquesvandermerwe added the enhancement Added to issues that describes enhancements label Nov 15, 2021
@arjankowski
Copy link
Contributor

Hi @jacquesvandermerwe,

Thanks for submitting this issue.

Unfortunately the current API doesn't allows us settings move and delete in locked_operations property to false even through the raw HTTP request.
Lack of locked_operations property in body request is equivalent to set move and delete to true.

Here is the description form API reference:
The operations to lock for the folder. If locked_operations is included in the request, both move and delete must also be included and both set to true. (https://developer.box.com/reference/post-folder-locks/#param-locked_operations).

But I will ask our internal team what are the plans for the future with locked_operations and will let you know.

@arjankowski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Added to issues that describes enhancements
Projects
None yet
Development

No branches or pull requests

5 participants