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/ACD7-2276-C948-458F-A3E5/sites/2915d1da-202b-4159-9166-5ef7ad9391b7/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": "510b9f1c-cb19-4ce2-9695-573e23b5517c,e5ef19a8-5790-4528-ac86-37cb8e498d0f",
"PolicyId": "11ff2816-ac6b-4c56-9e1a-3456e9055b8b"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>510b9f1c-cb19-4ce2-9695-573e23b5517c,e5ef19a8-5790-4528-ac86-37cb8e498d0f</EndpointsList> <PolicyId>11ff2816-ac6b-4c56-9e1a-3456e9055b8b</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).