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/166D-A058-1DA7-4DD4-8B47/sites/3a13c727-5c15-4b81-9c68-18ca11e53328/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": "d49c8052-8cd2-4a6d-9834-83ea36374c32,975ba2aa-076a-475a-a530-f9bb95ea1fae",
"PolicyId": "fbd83bc1-fc91-43d2-9259-4e261a8a0a92"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>d49c8052-8cd2-4a6d-9834-83ea36374c32,975ba2aa-076a-475a-a530-f9bb95ea1fae</EndpointsList> <PolicyId>fbd83bc1-fc91-43d2-9259-4e261a8a0a92</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).