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/53C1-0637-BE34-457E-8CA7/sites/0aa3a0f4-8c8c-4db5-b7b8-5e5884ec9865/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": "3d8d380e-e1ef-4b84-bf0b-3865cfd2ee01,b28a3e53-5dae-473e-bb54-33a9f7810102",
"PolicyId": "9e1bcb2f-5da6-4d9b-9033-06850adc5bf9"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>3d8d380e-e1ef-4b84-bf0b-3865cfd2ee01,b28a3e53-5dae-473e-bb54-33a9f7810102</EndpointsList> <PolicyId>9e1bcb2f-5da6-4d9b-9033-06850adc5bf9</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).