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/EBEC-7023-FABF-4676-BF26/sites/a31d44db-0d86-4046-98f5-00aa90bc0969/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": "ef6e9851-f311-4f7f-ac55-8d14b25b7a27,3f7778ef-d9b4-4549-aee3-2a07e5b55067",
"PolicyId": "403dc676-5456-4cdf-b566-ab2d9ac24e09"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>ef6e9851-f311-4f7f-ac55-8d14b25b7a27,3f7778ef-d9b4-4549-aee3-2a07e5b55067</EndpointsList> <PolicyId>403dc676-5456-4cdf-b566-ab2d9ac24e09</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).