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/D869-8468-85BC-4FC3-A0CD/sites/23bdfb32-326b-46d4-af19-065caf807cf3/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": "b97ce572-9475-4778-9ebe-dc28f11e6803,9a9b2f05-a287-4458-a81b-7d6fb70e6d49",
"PolicyId": "58a7fae3-de1a-4b66-82d9-01edb541b9da"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>b97ce572-9475-4778-9ebe-dc28f11e6803,9a9b2f05-a287-4458-a81b-7d6fb70e6d49</EndpointsList> <PolicyId>58a7fae3-de1a-4b66-82d9-01edb541b9da</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).