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>
<environment name="name"> <lock locked="true|false" href="relative URL" /> </environment>
<lock> <user name="username" /> <time start="start timestamp in milliseconds" expected-duration="expected duration in milliseconds" /> <reason>reason</reason> </lock>
<lock> <time expected-duration="expected duration in milliseconds" /> <reason>reason</reason> </lock>
This can only be performed if the specified user either owns the lock or is an administrator.