object service.addtimes(object/array serviceTimes)
This method allows to create new service times.
This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(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 services under the
Add a downtime for service with ID "4" scheduled weekly from Monday 22:00 till Tuesday 10:00.
CService::addTimes() in ui/include/classes/api/services/CService.php.