PUT /service/api/console/gsm/{gsmKey}/sites/{siteId}/endpoints/policy
Applies a new policy to the specified endpoints.
Request Information
URI Parameters
| Name | Description | Type | Additional Information |
|---|---|---|---|
| gsmKey |
The GSM console keycode. |
string |
Required |
| siteId |
The site identifier. |
string |
Required |
URI Sample(s)
|
PUT
|
https://unityapi.webrootcloudav.com/service/api/console/gsm/C345-256B-0E25-4375-9773/sites/01105bee-2de0-4b59-bcca-2de6f8b43147/endpoints/policy
|
Body Parameters
Additional information for setting a new policy.
SetPolicyEndpointsRequestModel| Name | Description | Type | Additional Information |
|---|---|---|---|
| EndpointsList |
Comma delimited string of endpoint identifiers. If not specified, the policy is set for all endpoints on the site. |
string |
None. |
| PolicyId |
The identifier of the policy that should be applied. |
string |
Required |
Sample Request
{
"EndpointsList": "fa195d39-c4b0-4e68-a482-cd3f67e08f0d,9214816c-91ed-48bd-9c1d-f73893ca2da5",
"PolicyId": "31312abd-b8ba-4558-bbfc-8cdf092f6399"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>fa195d39-c4b0-4e68-a482-cd3f67e08f0d,9214816c-91ed-48bd-9c1d-f73893ca2da5</EndpointsList> <PolicyId>31312abd-b8ba-4558-bbfc-8cdf092f6399</PolicyId> </SetPolicyEndpointsRequestModel>
Response Information
Resource Description
None. If successful, this API action does not return any data and the response status code will be 204 (No Content).