This method allows to update existing services.

    Parameters

    (object/array) service properties to be updated.

    The serviceid property must be defined for each service, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.

    Returns an object containing the IDs of the updated services under the serviceids property.

    Examples

    Setting the parent of an service

    Make service “3” the hard-linked parent of service “5”.

    Request:

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

    Source

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