The CHECKOUT method creates a new version of the resource (called a working version) and locks the resource so it can't be altered by another person. To then obtain a copy of the working version a GET method will need to be called on the resource URI.
A resource can only be checked out if the following preconditions are true:
- The resource requested is the latest version
- The resource is checked in
|200||OK||The request succeeded|
|403||Forbidden||The request failed. Most likely caused by requesting an older version|
|412||Precondition Failed||A precondition check failed. Most likely caused by the file already checked out|
This example marks the file test.txt as being checked out by the user.
Request (Code Snippet)
.... CHECKOUT Example/Files/test.txt ....
HTTP/1.1 200 OK