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/33F8-E05F-E1CC-4203-9E5E/sites/68b3a6d3-4abe-42ea-9d79-04bd4451b785/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": "8a0f17e0-c100-4aee-b634-0a2385b6c486,f1a22cda-5e2d-4d24-b58c-5a9e218978d5",
"PolicyId": "a6299495-fba0-4d9a-8d58-f25f264243b3"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>8a0f17e0-c100-4aee-b634-0a2385b6c486,f1a22cda-5e2d-4d24-b58c-5a9e218978d5</EndpointsList> <PolicyId>a6299495-fba0-4d9a-8d58-f25f264243b3</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).