KSC Open API
Kaspersky Security Center API description
wstring PackagesApi::PublishStandalonePackage ( boolean  bPublish,
int  nPkgExecId 
)

Publish/Unpublish a standalone package on KSC web server.

Note:
You can publish an already published package and vice versa
Parameters:
bPublish(boolean) true to publish the package, false to unpublish them.
nPkgExecId(int) Executable ID of the package.
Returns:
(wstring) URL of the published package (empty string if bPublish = false).
Exceptions:
Throwsexception in case of error.