Migrated from Redmine #71 | Author: jasmine JJ Status: Resolved | Priority: High, I’m very impatient | Created: 2017-11-28
Hello
I am currently working with setWorkdayInfo API and I just want to ask can wet set many day for a request
For example: I tried to send this params to test setWorkDayInfo
{“jsonrpc”:“2.0”,“method”:“setWorkDayInfo”,“id”:“1”,“params”:{“info”:[{“start_time”:“09:00:00”,“end_time”:“18:00:00”,“is_day_off”:0,“breaktime”:[{“start_time”:“14:00:00”,“end_time”:“14:30:00”}],“index”:0,“name”:“2017-11-30”,“date”:“2017-11-30”,“unit_group_id”:“1”,“event_id”:“1”},{“start_time”:“09:00:00”,“end_time”:“18:00:00”,“is_day_off”:0,“breaktime”:[{“start_time”:“14:00:00”,“end_time”:“14:30:00”}],“index”:0,“name”:“2017-11-30”,“date”:“2017-11-29”,“unit_group_id”:“1”,“event_id”:“1”}]}}
but I get error, so Can I set many day for a request.
Thank you
So we can’t set many day for just one request ?. I am set the param for one day and it work fine but my system have to call it many time so this is not good for my system.
It is impossible to set for many many at the same request.
Anyway it will not work, because it will be wrong. You can pass just object with data for single day.