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/F9F0-9EEE-88FF-4980-B7A4/sites/991e582f-1c1a-4b2a-89d7-2c9fd690717e/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": "e02ffad1-5842-4827-b55e-faeeec04de9d,8c3b0128-59a3-468a-9cee-325ba783002a",
"PolicyId": "b67c2254-4a12-43ca-abf1-e1410f5c78ec"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>e02ffad1-5842-4827-b55e-faeeec04de9d,8c3b0128-59a3-468a-9cee-325ba783002a</EndpointsList> <PolicyId>b67c2254-4a12-43ca-abf1-e1410f5c78ec</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).