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/C517-F7EC-5C81-491C-B471/sites/4958b149-a5c1-435b-b03a-30e2eb70a79c/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": "e1cc411a-1576-4459-87c5-ea3c1a38b7e1,c352597a-99ab-4d57-a280-a12c18b0260b",
  "PolicyId": "6511cbe9-d160-4df4-9dd7-3a5efd8138fd"
}                    
                <SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>e1cc411a-1576-4459-87c5-ea3c1a38b7e1,c352597a-99ab-4d57-a280-a12c18b0260b</EndpointsList> <PolicyId>6511cbe9-d160-4df4-9dd7-3a5efd8138fd</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).