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/1865-E73A-0C73-4CCB-B6A6/sites/77e60084-b458-4fd4-8266-e1b3e9d44666/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": "c2e14c03-fb80-43b7-b8a1-4529a590d122,b3d9105b-4cd8-4531-a958-bc4bca85624f",
"PolicyId": "c986f378-f032-4cd9-93aa-a2d6ffa4915e"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>c2e14c03-fb80-43b7-b8a1-4529a590d122,b3d9105b-4cd8-4531-a958-bc4bca85624f</EndpointsList> <PolicyId>c986f378-f032-4cd9-93aa-a2d6ffa4915e</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).