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/3BC3-156F-460B-4F46-8CBF/sites/e2ab577d-5857-4d90-9b03-8dafd2f74b40/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": "f2e2a069-a4e2-41f8-b113-96f98edad4d6,3213b3fc-4f21-476d-9a3b-05a23cddfd23",
"PolicyId": "4e8dfd2c-0038-458c-9cb4-afac69ec36bc"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>f2e2a069-a4e2-41f8-b113-96f98edad4d6,3213b3fc-4f21-476d-9a3b-05a23cddfd23</EndpointsList> <PolicyId>4e8dfd2c-0038-458c-9cb4-afac69ec36bc</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).