I got a request working perfectly when I created a request in cURL but I needed to make it c# code so I can add it to our system. This is the cURL request that I am trying to make a similar request in c# but had no luck on creating a correct one:
curl "https://someurl.com" -X PUT -d "@somefile.json" -H "Authorization: XXXXXX"
This is the current code that I have:
var httpContent = new StringContent(path + "somefile.json", Encoding.UTF8, "application/json");
putClient.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Authorization", "XXXXXX");
var response = await putClient.PutAsync(SOME_URL, httpContent);
var responseString = await response.Content.ReadAsStringAsync();
Thank you!!