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/F5B9-B4DD-79AC-40CB-BBEC/sites/91d4e01e-6d55-4ead-a5e0-49fbf7c62745/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": "b88f0231-5bb6-425f-aec1-8757b4292b40,0521d6cd-e249-485e-ba31-4925863f45ce",
"PolicyId": "d3679715-3290-485e-b8dc-ae5f72c228c4"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>b88f0231-5bb6-425f-aec1-8757b4292b40,0521d6cd-e249-485e-ba31-4925863f45ce</EndpointsList> <PolicyId>d3679715-3290-485e-b8dc-ae5f72c228c4</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).