box / box-python-sdk

Box SDK for Python
http://opensource.box.com/box-python-sdk/
Apache License 2.0
419 stars 215 forks source link

Error in deleting folder locks #860

Closed Sevillesilveira closed 9 months ago

Sevillesilveira commented 9 months ago

Hi

I created a folder lock on a folder with id 233490176640 (I am the owner of the folder). When I run the following code; locks = client.folder(folder_id='233490176640').get_locks() lock = locks.next() print(f'A lock on a folder with ID {lock.folder.id}')

I get the below output: image

But when I try to delete the lock, I get the following output: image image

Kindly let me know why I can't delete the folder lock

arjankowski commented 9 months ago

Hi @Sevillesilveira,

In order to delete a folder_lock you have to pass a folder_lock_ID instead of folder_ID. Please take a look at this documentation here

Regards, Artur