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/C34A-69E2-DCBA-4875-9D73/sites/4a370cd2-b949-4714-bb72-8d1662aac93d/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": "b3f0f9bf-8ab9-450e-b37f-a3fb353368ec,bba0445d-0664-45b0-9f5b-c9e5ac769e14",
"PolicyId": "7671d793-71e6-4259-b8c0-bb13b20dcb00"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>b3f0f9bf-8ab9-450e-b37f-a3fb353368ec,bba0445d-0664-45b0-9f5b-c9e5ac769e14</EndpointsList> <PolicyId>7671d793-71e6-4259-b8c0-bb13b20dcb00</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).