put https://api.zenoti.com/v1/employees//blockouttimes/?expand[]=ReccuringDetails
Use this API to update the blockout time of the specified employee.
error Object
code | message |
---|---|
503 | BlockOutTimeRequest object is not supplied. |
503 | Any one of center_id, block_out_time_id, employee_id, block_out_time_type_id, start_time, or end_time are missing. |
1004 | time difference between start_time and end_time should be greater than zero and should not exceed 12hours. |
1004 | Not a valid center. Please check. |
1004 | Please send a valid employee_id. |
1004 | Requested start time and end time are not in center working hours. |
449 | Schedule for employee is not set. |
438 | User does not have the required permission to perform this action. |
503 | Any one of the time_period, rec_start_date or interval is missing while creating recurring block out time. |
503 | time_period or rec_start_date is missing while creating recurring block out time. |
503 | both occurences or rec_end_date are passed. |
503 | Invalid interval or occurences or rec_end_date are passed. |
4023 | cannot create the recurrence_id with given details. |
4023 | cannot update the recurrence_id with given details. |
4023 | failure at api level while getting block out list. |