I have a Powershell script that I use to synchonize various projects parameters. The relevant code I use to update a project parameter is:
$propName = "ReleaseNumber"
$propValue = "10.0"
Invoke-RestMethod -method Put -uri "$server/httpAuth/app/rest/projects/$targetProject/parameters/$propName" -Body "$propValue"
After the upgrade to TeamCity 9.1, I started receiving the following error when using the script:
Invoke-RestMethod : The remote server returned an error: (415) Unsupported Media Type.
What do I need to do to resolve this issue?