public String createSchedule(String scheduleName) { String scheduleId = ""; try { System.out.println("Inside try"); String urlGet =urlHost + "/Extractions/Schedules"; Client client = Client.create(); WebResource webResource = client.resource(urlGet); JSONObject recurrence = new JSONObject(); recurrence.put("@odata.type", "#ThomsonReuters.Dss.Api.Extractions.Schedules.SingleRecurrence"); recurrence.put("IsImmediate",true); // reccurrence.put("ExtractionDateTime","2016-03-18T16:51:42.000Z"); JSONObject trig= new JSONObject(); trig.put("@odata.type", "#ThomsonReuters.Dss.Api.Extractions.Schedules.ImmediateTrigger"); JSONObject scheduleJSONObject = new JSONObject(); scheduleJSONObject.put("name",scheduleName); scheduleJSONObject.put("@odata.type", "#ThomsonReuters.Dss.Api.Extractions.Schedules.Schedule"); scheduleJSONObject.put("ListId","0x05321cff4db579e6"); scheduleJSONObject.put("OutputFileName","Immediate_extarct.csv"); scheduleJSONObject.put("Recurrence",recurrence ); scheduleJSONObject.put("ReportTemplateId","0x05330bf6e7eafc5b"); //scheduleJSONObject.put("ScheduleId","null"); scheduleJSONObject.put("TimeZone","(UTC+05:30) Chennai,Kolkata,Mumabi,New Delhi"); scheduleJSONObject.put("Trigger",trig); String params = scheduleJSONObject.toString(); System.out.println("Before print params"); System.out.println(params); System.out.println("After print params"); ClientResponse response = null; response = webResource .header("Content-Type", "application/json;charset=UTF-8") .header("Authorization", "Token " + sessionToken) .post(ClientResponse.class, params); System.out.println(response.toString()); System.out.println("After Response"); System.out.println("Before String.class"); String jsonStr = response.getEntity(String.class); System.out.println("aftre String.class"); JSONObject jsonResponse=new JSONObject(jsonStr); StringWriter out = new StringWriter(); jsonResponse.write(out); System.out.println("JSON response: "+ out); scheduleId = jsonResponse.getString("ScheduleId"); } catch (JSONException e) { e.printStackTrace(); } return scheduleId; } Error I am getting is : JSON response: {"error":{"innererror":{"message":"\n\nMapping types:\r\nSchedule -> ScheduleDescription\r\nThomsonReuters.Dss.Extractions.Schedules.Schedule -> ThomsonReuters.Dss.Extractions.Schedules.ScheduleDescription\n\nDestination path:\nScheduleDescription\n\nSource value:\nSchedule - ID: 0x053354546cf52703","internalexception":{"message":"Value cannot be null.\r\nParameter name: name","stacktrace":" at ThomsonReuters.Dss.Extractions.Schedules.ScheduleDescription..ctor(String name, String outputFileName, String timeZone, ScheduleContent content, ScheduleRecurrence recurrence, ScheduleTrigger trigger)\r\n at ThomsonReuters.Dss.Extractions.Schedules.Schedule.<.cctor>b__0(Schedule s)\r\n at AutoMapper.MappingExpression`2.<>c__DisplayClass12.<ConvertUsing>b__11(ResolutionContext source)\r\n at AutoMapper.Mappers.TypeMapObjectMapperRegistry.CustomMapperStrategy.Map(ResolutionContext context, IMappingEngineRunner mapper)\r\n at AutoMapper.Mappers.TypeMapMapper.Map(ResolutionContext context, IMappingEngineRunner mapper)\r\n at AutoMapper.MappingEngine.AutoMapper.IMappingEngineRunner.Map(ResolutionContext context)","type":"System.ArgumentNullException"},"stacktrace":" at ThomsonReuters.Dss.Extractions.Schedules.Schedule.BeforeSave(IList`1 warningAndInfoMessages)\r\n at ThomsonReuters.Dss.Core.Entities.ContextBase.DoBeforeSaveChanges(IList`1 warningAndInfoMessages)\r\n at ThomsonReuters.Dss.Core.Entities.ContextBase.Validate(IList`1 warningAndInfoMessages)\r\n at ThomsonReuters.Dss.Core.Entities.ContextBase.SaveChanges()\r\n at ThomsonReuters.Dss.Core.RestApi.Controllers.ContextBatchHandler.SaveChanges()\r\n at ThomsonReuters.Dss.Api.Extractions.Schedules.SchedulesBaseController.CreateEntity(Schedule entity)\r\n at ThomsonReuters.Dss.Core.RestApi.Controllers.EntitySetController`2.Post(TEntity entity)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()","type":"AutoMapper.AutoMapperMappingException"},"message":"\n\nMapping types:\r\nSchedule -> ScheduleDescription\r\nThomsonReuters.Dss.Extractions.Schedules.Schedule -> ThomsonReuters.Dss.Extractions.Schedules.ScheduleDescription\n\nDestination path:\nScheduleDescription\n\nSource value:\nSchedule - ID: 0x053354546cf52703","code":""}}