0
votes

I want to update the parameter value in the Teamcity build template.

I Tried the following URL

[PUT] http://xxx.xxx.x.xxx:8080/app/rest/buildTypes/{BuildTypeName}/parameters/{ParameterName}/{ParameterValue}

By trying this I'm facing the following error

403 Forbidden: Responding with 403 status code due to failed CSRF check: authenticated PUT request is made, but neither tc-csrf-token parameter nor X-TC-CSRF-Token header are provided.. For a temporary workaround, you can set internal property teamcity.csrf.paranoid=false and provide valid Origin=http://xxx.xxx.x.xxx:8080 header with your request

Please suggest how update the parameter value in Teamcity

1

1 Answers

0
votes

Sending the "Origin=http://xxx.xxx.x.xxx:8080" in the header solved the issue