Skip to main content

Delete Folder Lock fails with 404 Not Found.

{

    "type": "error",

    "status": 404,

    "code": "not_found",

    "help_url": "http://developers.box.com/docs/#errors",

    "message": "Authorization Failed",

    "request_id": "0b3a714efe5a6f7110fc3281c015b0d2c"

}

I’ve authenticated with the Owner as well as made myself Co-Owner.

I’ve reviewed: API oContent API] - 404 "not_found" Errors from the Box API – Box Support but doesn’t seem to help.

curl --location --request DELETE 'https://api.box.com/2.0/folder_locks/297778732113' \
--header 'content-type: application/json' \
--header 'Authorization: Bearer ----------------------------------------------' \
--header 'Cookie: box_visitor_id=66ec80484d6913.85943221'

 

 

 

Hi Gabe,

 

It appears that in your API request, you are supplying a 12-digit Box Folder ID rather than a 10-digit Folder Lock ID in the path parameter.

You can retrieve the Folder Lock ID by querying GET https://api.box.com/2.0/folder_locks?folder_id=297778732113

 

From that you will see a response similar to:


{
    "entries": i
        {
            "folder": {
                "type": "folder",
                "id": "297778732113",
                "sequence_id": "0",
                "etag": "0",
                "name": "Example Folder Name"
            },
            "id": "<some 10-digit ID>",
            "type": "folder_lock",

 

 

Use the 10-digit Folder Lock ID in conjunction with the DELETE endpoint from your previous request and the folder lock will be deleted. 


Thanks Mike, that was the issue.


Reply