box-java-sdk icon indicating copy to clipboard operation
box-java-sdk copied to clipboard

Box Folder Locks: Unable to set lock type.

Open jacquesvandermerwe opened this issue 2 years ago • 1 comments

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 avatar Nov 15 '21 16:11 jacquesvandermerwe

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

arjankowski avatar Nov 16 '21 10:11 arjankowski