I am setting this as json string. Even though still sending me same error. I would like you to share my code which make a api call to schedule email. My code looks like below: DateTime dt = System.DateTime.Now.AddMinutes(10); string dateISO = dt.ToString("yyyy-MM-ddTHH:mm:ssZ"); Models.schedule_campaign schedule = new Models.schedule_campaign(); schedule.scheduled_date = dateISO; string requestPath = "emailmarketing/campaigns/"+id+"/schedules" + api; string jsonContact = Newtonsoft.Json.JsonConvert.SerializeObject(schedule); var content = new StringContent(jsonContact); content.Headers.ContentType = new MediaTypeHeaderValue("application/json"); HttpResponseMessage response = HttpClient.PostAsync(requestPath, content).Result; Where schedule is my model and is defined as: public class schedule_campaign { public string scheduled_date { get; set; } }
... View more