object service.update(object/array services)
This method allows to update existing services.
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 properties to be updated.
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.
Additionally to the standard service properties, the method accepts the following parameters.
|dependencies||array||Service dependencies to replace the current service dependencies.
Each service dependency has the following parameters:
|parentid||string||ID of a hard-linked parent service.|
|times||array||Service times to replace the current service times.|
(object) Returns an object containing the IDs of the updated services under the
Make service "3" the hard-linked parent of service "5".
CService::update() in ui/include/classes/api/services/CService.php.