Folder Locks
Create folder lock
Changed onCreates a folder lock on a folder, preventing it from being moved and/or deleted.
You must be authenticated as the owner or co-owner of the folder to use this endpoint.
post/folder_locks
Request
- Base URLhttps://api.box.com/2.0
- URLhttps://api.box.com/2.0/folder_locks
- AuthOAuth 2Authorization code: https://account.box.com/api/oauth2/authorizeToken URL: https://api.box.com/oauth2/token
Request body
Example request
{
"locked_operations": {
"move": true,
"delete": true
},
"folder": {
"type": "folder",
"id": "1234567890"
}
}Response
Returns the instance of the folder lock that was applied to the folder, including the user that applied the lock and the operations set.
Example response
{
"folder": {
"id": "12345",
"etag": "1",
"type": "folder",
"sequence_id": "3",
"name": "Contracts"
},
"id": "12345678",
"type": "folder_lock",
"created_by": {
"id": "11446498",
"type": "user"
},
"created_at": "2020-09-14T23:12:53Z",
"locked_operations": {
"move": true,
"delete": true
},
"lock_type": "freeze"
}Changes
- warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status - warning
added the new
unprocessable_entityenum value to theresponse property for the response status
- warning