Box Developer Documentation
 
    Latest version

    List folder locks

    get
    https://api.box.com/2.0
    /folder_locks

    This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

    Retrieves folder lock details for a given folder.

    You must be authenticated as the owner or co-owner of the folder to use this endpoint.

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Query Parameters

    stringin queryrequired
    12345

    The unique identifier that represent a folder.

    The ID for any folder can be determined by visiting this folder in the web application and copying the ID from the URL. For example, for the URL https://*.app.box.com/folder/123 the folder_id is 123.

    The root folder of a Box account is always represented by the ID 0.

    Response

    application/jsonFolder Locks

    Returns details for all folder locks applied to the folder, including the lock type and user that applied the lock.

    application/jsonClient error

    Returned when the access token provided in the Authorization header is not recognized or not provided.

    application/jsonClient error

    Returned if the folder is not found, or the user does not have access to the folder.

    application/jsonClient error

    Returned if the folder_id is not in a recognized format.

    application/jsonClient error

    An unexpected client error.

    get
    List folder locks
    You can now try out some of our APIs live, right here in the documentation.
    Log in

    Request Example

    cURL
    curl -i -X GET "https://api.box.com/2.0/folder_locks?folder_id=33552487093" \
         -H "authorization: Bearer <ACCESS_TOKEN>"

    Response Example

    {
      "entries": [
        {
          "created_at": "2020-09-14T23:12:53Z",
          "created_by": {
            "id": "11446498",
            "type": "user"
          },
          "folder": {
            "etag": "1",
            "id": "12345",
            "type": "folder",
            "name": "Contracts",
            "sequence_id": "3"
          },
          "id": "12345678",
          "lock_type": "freeze",
          "locked_operations": {
            "delete": true,
            "move": true
          },
          "type": "folder_lock"
        }
      ],
      "limit": "1000",
      "next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii"
    }