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/AF9C-43B9-64FA-4B54-8937/sites/226ec9c9-1c5a-46a5-b23d-e3f3393d70bb/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": "995648ee-f64d-4383-9809-f1755f9c31dc,5b180e8e-9f99-47b4-bbf9-a5917485431f",
"PolicyId": "77eb7c05-eb3b-4f7a-a5cc-c9b69e02dd0e"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>995648ee-f64d-4383-9809-f1755f9c31dc,5b180e8e-9f99-47b4-bbf9-a5917485431f</EndpointsList> <PolicyId>77eb7c05-eb3b-4f7a-a5cc-c9b69e02dd0e</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).