I'm using a REST full API, which needs a PATCH header... So in xamarin, you only have getasync, postasync, putasync and send async...
But I have no clue on how to add /make a PATCH async method (or even do such a request)
This is the code I currently have to be send via a patch
Folder add_list_to_folder = new Folder()
{
// revision is required, so we take the current revision and add one to it.
revision = folder_to_be_updated.revision += 1,
list_ids = arr_of_lists
};
Now, I think that needs to get seialized, so like this:
response = await client.PostAsync(url,
new StringContent(
JsonConvert.SerializeObject(add_list_to_folder),
Encoding.UTF8, "application/json"));
But that is a post, so how can I make an PATCH request?