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/E339-033D-28BA-4607-BCB5/sites/94ea8ec5-487c-47f3-801d-20e48e3a518b/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": "42301033-cfa9-4a8b-87cd-2535ddf71c6a,daa22c50-35b4-41a4-8bdf-5ff7e942b0ea",
"PolicyId": "2c1b78b7-28db-4330-b446-b5b71c654cc4"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>42301033-cfa9-4a8b-87cd-2535ddf71c6a,daa22c50-35b4-41a4-8bdf-5ff7e942b0ea</EndpointsList> <PolicyId>2c1b78b7-28db-4330-b446-b5b71c654cc4</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).