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/E113-151C-C764-4631-8B62/sites/7c2ac20c-0f60-4d88-b0c2-52c9aa7c8539/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": "7a206599-a3ca-4e74-bc13-67ae82f6fb72,2561dcf4-8067-4d6e-8e1c-f6984bb3f2b5",
"PolicyId": "a2eea4bd-cc57-4e71-87cb-4f78dafc1c5e"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>7a206599-a3ca-4e74-bc13-67ae82f6fb72,2561dcf4-8067-4d6e-8e1c-f6984bb3f2b5</EndpointsList> <PolicyId>a2eea4bd-cc57-4e71-87cb-4f78dafc1c5e</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).