I'm trying to write a PowerShell script that creates a parameter in a TeamCity build configuration, this is simple to do with the REST API.
Just set up an authenticated webclient and make a PUT request to the parameters of the build config:
$webclient.UploadString("http://Server:8111/httpAuth/app/rest/buildTypes/buildID/parameters/Password, "PUT", "PasswordString")
But this parameter contains a password and needs to be stored as a Password type in Team City.
I know I can change the type of the parameter manually from TeamCity's UI but is there a way to automate this with the REST API (otherwise I'll be doing this manually for over 100 build configs)