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/0069-C65A-20D9-44F9-A09A/sites/c23b2d58-53d1-4498-bbe8-89de467ff15b/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": "88a4f89d-eb45-4638-8686-e0477f2990be,d54ddb64-6275-48b4-bfce-cf1d8793584b",
"PolicyId": "353e56a1-54b0-4821-9f66-7ea534d1caf9"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>88a4f89d-eb45-4638-8686-e0477f2990be,d54ddb64-6275-48b4-bfce-cf1d8793584b</EndpointsList> <PolicyId>353e56a1-54b0-4821-9f66-7ea534d1caf9</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).