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/5D95-5878-82C5-4709-A715/sites/5c756fe1-d35e-40f9-85dc-3b2fd37f3588/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": "82f38794-e5a8-4a00-89df-e7102be8f9e4,58aa9d6f-9c45-48a2-9d58-ad3b5d75fd30",
"PolicyId": "21213d69-ce3c-4bbc-a2cc-209f576ee203"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>82f38794-e5a8-4a00-89df-e7102be8f9e4,58aa9d6f-9c45-48a2-9d58-ad3b5d75fd30</EndpointsList> <PolicyId>21213d69-ce3c-4bbc-a2cc-209f576ee203</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).