Posting to API failure

Wait i just realized you aren’t serialzing your dynamic object response.!!! This assumes body is a JSON String and it isn’t any more once you make a dynamic object

Change it to this

var settings = new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore };
request.AddParameter("application/json", JsonConvert.SerializeObject(body, settings), ParameterType.RequestBody);
1 Like