object service.adddependencies(object/array serviceDependencies)
This method allows to create dependencies between IT services.
(object/array) Service dependencies to create.
Each service dependency has the following parameters.
|serviceid||string||ID of the IT service that depends on a service, that is, the parent service.|
|dependsOnServiceid||string||ID of the IT service that a service depends on, that is, the child service.|
|soft||string||Type of dependency.
Refer to the service dependency object page for more information on dependency types.
(object) Returns an object containing the IDs of the affected parent IT services under the
Make IT service "2" a hard-dependent child of service "3".
CService::addDependencies() in frontends/php/include/classes/api/services/CService.php.