This method allows to create new service times.
Parameters
(object/array)
Service times to create.
(object)
Returns an object containing the IDs of the affected services under the serviceids
property.
Examples
Adding a scheduled downtime
Add a downtime for service with ID “4” scheduled weekly from Monday 22:00 till Tuesday 10:00.
Response:
"jsonrpc": "2.0",
"result": {
"serviceids": [
]
},
"id": 1
Source
CService::addTimes() in ui/include/classes/api/services/CService.php.