Create Shared Resource Build Feature in TC configuration via REST

Hi,

I am stuck with creating read lock shared resource build feature on configuration as I can't find any documentation about the format. Getting those features via REST works, but I am struggling with creating one. Is that possible in the first place?

Actually, I am playing with request like this

POST http://teamcity/httpAuth/app/rest/buildTypes/id:Build/features
<feature type="JetBrains.SharedResources" id="shared_resource">
  <properties>
    <property name="locks-param" value="sh_res readLock"/>
  </properties>
</feature>

Request is responded with 200 and nothing is added

Thanks Martin

1 comment
Comment actions Permalink

At the end, the request is correct, but for some weird reason, it did not work in Postman. Sending the same programmaticaly works.

0

Please sign in to leave a comment.