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/80C3-3F7B-B07D-49AD-9D6F/sites/20d04396-fc80-4800-ae92-8ea6d4bc7e9f/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": "da2bb183-50a5-4e4a-8c63-3e238b9c6818,5ad7f93f-61e3-43ae-b9d3-6d07c2cd6052",
"PolicyId": "236b3e32-f555-4442-843b-938ebb679906"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>da2bb183-50a5-4e4a-8c63-3e238b9c6818,5ad7f93f-61e3-43ae-b9d3-6d07c2cd6052</EndpointsList> <PolicyId>236b3e32-f555-4442-843b-938ebb679906</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).