Lock File
Files can be locked to prevent another user from editing a files while it is being worked on. When a file is locked, other actors will be prevented from deleting or creating a new version of a file. Other actions such as modifying metadata or moving the file are allowed on locked files.
Only regular files can be locked. Support Files and Folders cannot be locked.
Request
Section titled “Request”POST {baseUrl}/spaces/{spaceId}/files/{fileId}/lock?complete=true-
HEADER:
- Authorization:
Bearer {tid token}
- Authorization:
-
BODY:
reason- Reason to lock the file (optional)
Response
Section titled “Response”To know more about the lock file API refer here.