object service.addtimes(object/array serviceTimes)
This method allows to create new service times.
(object/array) Service times to create.
The method accepts service times with the standard service time properties.
(object) Returns an object containing the IDs of the affected IT services under the
Add a downtime for IT service "2" scheduled weekly from Monday 22:00 till Tuesday 10:00.
CService::addTimes() in frontends/php/include/classes/api/services/CService.php.