KSC Open API
Kaspersky Security Center API description
params UserDevicesApi::CreateEnrollmentPackages ( binary  pUserId,
int  lLiveTime,
params  pRecipient,
params  pNotificationEx,
array  pProtSpecInfo 
)

Creates the enrollment package for an user's device.

The method will be completed before the package is finally created, to find out when the package is ready you should call method UserDevicesApi.GetEnrollmentPackage many times.

Parameters:
pUserId(binary) device owner binary identifier, empty means current user (current logged on the server user)
lLiveTime(int) means how long the enrollment package is available for download (in hours)
pRecipient(params) recipient data such as e-mail and phone number, these data will be used to send a message with the link to the enrollment package (see Device enrollment recipient info)
pNotificationEx(params) contains a welcome message and URLs to download the enrollment package (see Device enrollment notification)
pProtSpecInfo(array) array of params contains protocols specific data (see Protocols specific data)
Returns:
(params) package ids to be used to access the enrollment packages state and its attributes, ex: {{pkg_type, pkg_id}, ...}.