[#71] setworkdayinfo

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

Dmytro Bondarev wrote:

No.

(Short original content)

Dmytro Bondarev wrote:

Sorry. You pass wrong parameters. please check the documentation API documentation | SimplyBook.me Online Scheduling
(info is not needed at your request)

jasmine JJ wrote:

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.

jasmine JJ wrote:

so you mean If I use the same request with no info parameters then it will work fine, right?

Dmytro Bondarev wrote:

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.

jasmine JJ wrote:

I got it, thank you very much :smiley: