· 6 years ago · Nov 12, 2018, 02:42 PM
1Uri patchUri = new Uri(fullRequest);
2 var patchContent = new StringContent(caseJSON, Encoding.UTF8, "application/json");
3
4 var request = new HttpRequestMessage
5 {
6 RequestUri = patchUri,
7 Method = new HttpMethod("PATCH"),
8 Content = patchContent
9 };
10 request.Headers.Add("Authorization", "Bearer " + oauthToken);
11
12 HttpClient postClient = new HttpClient();
13
14
15 HttpResponseMessage result = await postClient.SendAsync(request).ConfigureAwait(false);