LockFile
Locks a file in Box to prevent other users from editing or uploading new versions while the lock is active.
Input
| Name | Type | Description |
| FileId | String | The unique identifier of the file to be locked. |
| ExpiresAt | Datetime | The timestamp when the lock expires. If not provided, the lock remains until it is manually removed. |
| PreventDownload | Bool | Indicates whether downloading the locked file should be prevented while the lock is active.
The default value is false. |
| AsUserId | String | The Id of the user to impersonate when performing the operation. Only works with Admin, Co-Admin, and Service Accounts. |
Result Set Columns
| Name | Type | Description |
| Success | Bool | Indicates whether the file was successfully locked. |