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:

    1. "jsonrpc": "2.0",
    2. "result": {
    3. "serviceids": [
    4. ]
    5. },
    6. "id": 1

    Source

    CService::addTimes() in ui/include/classes/api/services/CService.php.