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:
| # | Parameters | Data Type | Description |
|---|---|---|---|
| catalogItemID | Integer | ID of the catalog item. | |
| packageOrPolicyID | String (GUID) | GUID of policy or package. | |
| programData | String | String of the format `InstallType(Integer)\ | |
| deploymentTarget | Enum Value | Use 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