Skip to main content

AddAltirisPackageOrPolicy

You can use the AddAltirisPackageOrPolicy web method to add an Altiris package or policy to a catalog item.

Parameters

The AddAltirisPackageOrPolicy web method includes the following parameters:

#ParametersData TypeDescription
catalogItemIDIntegerID of the catalog item.
packageOrPolicyIDString (GUID)GUID of policy or package.
programDataStringString of the format `InstallType(Integer)\
deploymentTargetEnum ValueUse one of the following values: 0 —DeployToUser 1 —DeployToComputer

Return Value

Returns one of the following values:

  • Returns TRUE for success
  • Returns FALSE for failure