KSC Open API
Kaspersky Security Center API description
HostGroup::MoveHostsFromGroupToGroup ( int  nSrcGroupId,
int  nDstGroupId,
[out] wstring  strActionGuid 
)

Moves hosts from the source administration group to the target administration group.

Operation is asynchronous.

Parameters:
nSrcGroupId(int) ID of the source administration group.
nDstGroupId(int) ID of the target administration group.
[out]strActionGuid(wstring) ID of an asynchronous operation. To get a status, use AsyncActionStateChecker.CheckActionState. lStateCode "1" means OK and "0" means failure.