Detaching template from build configuration

Hi,

When detaching template from build configuration in UI it copies template settings to the build configuration preserving build steps etc.

But, when I'm sending requests (sending http DELETE request to http://teamcity:8111/app/rest/buildTypes/<buildTypeLocator>/templates) via REST API  - the template is detached, but template's settings are NOT copied. 

Any suggestions  how to mock the UI and detach the template while keeping all its settings in the build configuration ?

Thanks

1
2 comments

Hi,

 

you should be able to add the parameter "inlineSettings=true" to the request (<btLocator>/templates?inlineSettings=true) and that should do the trick

1
Avatar
Permanently deleted user

Thanks Denis, it helped

0

Please sign in to leave a comment.