skip to Main Content

Json – C# Not able to post data using HttpRequestMessage and getting 400 status

I tried a few different ways I can't get pipelineId to post (receive 400), see code below: { client.BaseAddress = new Uri(_serviceConfig.DataGapsBaseUrl); var request = new HttpRequestMessage(HttpMethod.Post, "/piper/jobs"); var jsonContent = new StringContent(JsonConvert.SerializeObject(new { pipelineId = _serviceConfig.DataPipelineId }), Encoding.UTF8, "application/json");…

VIEW QUESTION
Back To Top
Search