Important: To improve forward compatibility of clients of the REST API, no manual construction of URLs should be performed, except for the construction of the Query URL.
URLs should be generated by resolving the relative hrefs provided in the XML. These should be resolved against the URL that they were returned from.
<environments> <environment name="name" href="relative URL" /> </environments>
If the response code is 400 or greater, and the Content-Type is text/plain, then the response body contains a plain-text error message.
<environment name="name"> <lock locked="true|false" href="relative URL" /> </environment>
If the response code is 400 or greater, and the Content-Type is text/plain, then the response body contains a plain-text error message.
<lock> <user name="username" /> <time start="start timestamp in milliseconds" expected-duration="expected duration in milliseconds" /> <reason>reason</reason> </lock>
If the response code is 400 or greater, and the Content-Type is text/plain, then the response body contains a plain-text error message.
<lock> <time expected-duration="expected duration in milliseconds" /> <reason>reason</reason> </lock>
If the response code is 400 or greater, and the Content-Type is text/plain, then the response body contains a plain-text error message.
This can only be performed if the specified user either owns the lock or is an administrator.
If the response code is 400 or greater, and the Content-Type is text/plain, then the response body contains a plain-text error message.