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/6A73-E3CD-5A40-4309-A0F1/sites/ddd48dd7-d7ff-40a0-b1d2-9d66cceb68bd/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": "7b1f6fa6-544c-4bf6-bc1b-f3280dca33e9,4cc0fb57-f9bf-446b-86b1-5c80e12a9765",
"PolicyId": "1850fc8d-1ad8-4443-a5fd-be12af2f40fd"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>7b1f6fa6-544c-4bf6-bc1b-f3280dca33e9,4cc0fb57-f9bf-446b-86b1-5c80e12a9765</EndpointsList> <PolicyId>1850fc8d-1ad8-4443-a5fd-be12af2f40fd</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).