Hi
I can successfully use curl to do:
curl -v -u'user:pass' -H"content-type: application/json" -d '{"ticket": { "priority":"normal","comment":{"value":"Testing 1 2 3 4"
I then try to mimic this in RestSharp. With:
var client = new RestClient();
client.Authenticator = new HttpBasicAuthenticator("user", "pass");
var request = new RestRequest();
request.Resource = "/api/v2/tickets/123.json";
request.Method = Method.PUT;
request.AddParameter("content-type", "application/json");
string json = "{\"ticket\": { \"priority\":\"normal\",\"comment\":{\"value\":\"Testing 1 2 3 4 - with RestSharp \" }}}";
request.AddBody(json);
IRestResponse response = client.Execute(request);
The ErrorException in response is null.
I know it gets to Zendesk, since when viewing the ticket in their webinterface a nice alert is raised in the browser: "This ticket has been updated since you started viewing it. (ignore this) (reload)". Zendesk support also confirmed that they receive the request, but could not provide further information as to why the priority is not changed or the comment is not updated. So I guess it might be my approach with AddBody that is incorrect ?
Any insights would be appreciated.
BR
Hans