Thanks to Daniel A. White’s comment, I got the following working.
using (var client = new HttpClient())
{
var request = new HttpRequestMessage(new HttpMethod("PATCH"), "your-api-endpoint");
try
{
response = await client.SendAsync(request);
}
catch (HttpRequestException ex)
{
// Failed
}
}
EDIT: For .NET (Core) see @LxL answer.