public async Task SetParameterValue(Action <BuildTypeLocator> buildTypeLocatorConfig, string name, string value, bool own = true) { var csfrToken = await GetCsrfToken(); var locator = new BuildTypeLocator(); buildTypeLocatorConfig(locator); Log.TraceFormat("API BuildConfig.SetParameterValue for: {0}, {1}: {2}", locator, name, value); string requestUri = string.Format("/app/rest/buildTypes/{0}/parameters/{1}", locator, name); await _http.PutJson(requestUri, Json.Serialize(new Property() { Name = name, Value = value, Own = own }), new Dictionary <string, string> { { "X-TC-CSRF-Token", csfrToken } }); }