Register() [OnboardingServiceManager]

Register

Description

Add a new service or update an existing service.

Package Details

Interface

IOnboardingServiceManager

Syntax

Task<string> Register(ServiceInfo info);

Returns

Task<string>

API Endpoint

There are no parameters.

Example

var serviceInfo = new ServiceInfo { BaseUrl = "your url", BusinessUnit = TcBusinessUnit.MyTcOnline, FriendlyNameEn = "My Service En", FriendlyNameFr = "My Service Fr", Groups = new List<ServiceGroup>(), Icon = "icon.jpg", IsDisplayableInCatalog = true, IsEnrollmentRequired = true, IsPublic = true, Id = 100 //Only when updating }; var info = await onboardingServiceManager.Register(serviceInfo);