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

Publish/Unpublish a standalone package on remote 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.
szwWebSrvHostId(int) Web server host id.
Returns:
(wstring) URL of the published package (empty string if bPublish = false).
Exceptions:
Throwsexception in case of error.