Migrated from Redmine #287 | Author: Anonymous
Status: New | Priority: High, I’m very impatient | Created: 2018-11-16
I need to be able to let providers set days with no availability that will repeat every week (or until the add some availability). For example, they don’t work on Saturday or Sunday every week.
Using setWorkDayInfo if I want to set a special day off I can do this:
“start_time”:“00:00”,
“end_time”:“24:00”,
“is_day_off”:1,
“breaktime”:[{“start_time”:“”, “end_time”:“”}],
“index”:“”,
“name”:“”,
“date”:“2018-11-17”,
“unit_group_id”:“xx”,
“event_id”:“”
However, I don’t want to have to set a special day for a routine day off. If I do this:
“start_time”:“00:00”,
“end_time”:“24:00”,
“is_day_off”:1,
“breaktime”:[{“start_time”:“”, “end_time”:“”}],
“index”:“1”,
“name”:“Monday”,
“date”:“”,
“unit_group_id”:“xx”,
“event_id”:“”
It sets no availability for the whole company every Monday. Same result if I try by setting the breaktime from 00:00 to 24:00 and setting is_day_off to 0.
Is there a way to set a recurring day off through the API without having to set a special day for each one?