object service.create(object/array itServices)
This method allows to create new IT services.
(object/array) IT services to create.
Additionally to the standard IT service properties, the method accepts the following parameters.
Each service dependency has the following parameters:
|parentid||string||ID of a hard-linked parent IT service.|
|times||array||Service times to be created for the IT service.|
(object) Returns an object containing the IDs of the created IT services under the
serviceids property. The order of the returned IDs matches the order of the passed IT services.
Create an IT service that will be switched to problem state, if at least one child has a problem. SLA calculation will be on and the minimum acceptable SLA is 99.99%.
CService::create() in frontends/php/include/classes/api/services/CService.php.