Approve Patch
Service name: patch_approve
Base URL
https://{SERVER}/api/?apikey={yourAPIkey}&service=patch_approve
Description
Approve specific software patches for the specified device.
Parameters
Required parameters
Add required parameters immediately after the base URL.
https://{SERVER}/api/?apikey={yourAPIkey}&service=patch_approve&required_parameters={parameter-value}
| Parameter | Description | Type | Options | Default | 
|---|---|---|---|---|
| 
 deviceid  | 
  
 The deviceid must be a valid id.  | 
  
 number  | 
  
 0  | 
  
 0  | 
| 
 patchids  | 
 
 
The patchids parameter is a sequence of comma separated patchid ' s as return in the patch_list_all  | 
  
 string  | 
  
 0  | 
  
 0  | 
Optional parameters
Add optional parameters after the required parameters in the base URL.
https://{SERVER}/api/?apikey={yourAPIkey}&service=patch_approve&required_parameters={parameter-value}&optional_parameters={parameter-value}
| Parameter | Description | Type | Options | Default | 
|---|---|---|---|---|
| describe | Optional. Returns a description of the entered call, the available parameters, an example of its output, and returned fields with descriptions. | boolean | true | 0 | 
Determine parameter values
Use the following associated service calls to determine parameter values.
| Parameter | Call | URL Format | 
|---|---|---|
| patchid | patch_list_all | https://{SERVER}/api/?apikey={yourAPIkey}&service=patch_list_all&deviceid=DEVICEID | 
| deviceid | list_devices_at_client | https://{SERVER}/api/?apikey={yourAPIkey}&service=list_devices_at_client&clientid=CLIENTID&devicetype=server | 
| list_servers | https://{SERVER}/api/?apikey={yourAPIkey}&service=list_servers&siteid=SITEID | |
| list_workstations | https://{SERVER}/api/?apikey={yourAPIkey}&service=list_workstations&siteid=SITEID | |
| siteid | list_sites | https://{SERVER}/api/?apikey={yourAPIkey}&service=list_sites&clientid=CLIENTID | 
| clientid | list_clients | https://{SERVER}/api/?apikey={yourAPIkey}&service=list_clients | 
Examples
Approve patch
https://{SERVER}/api/?apikey={yourAPIkey}&service=patch_approve&deviceid=DEVICEID&patchids=PATCHID,PATCHID,PATCHID
Example response
<?xml version="1.0"?>
<result created="2024-10-01T12:47:15+01:00" host="SERVER" status="OK"/>Returned fields
No fields returned.
Updated 3 months ago