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/9D38-E933-4DAB-478A-9ED8/sites/a1224e73-0433-4f78-bb35-cd5a245ab4f3/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": "90cb2093-d4bb-47c3-bf8d-6912ea8338b0,e3cca121-bc7d-45f4-a2e8-cf312582dc16",
"PolicyId": "872ce2c9-6a47-4368-9068-665686d69a29"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>90cb2093-d4bb-47c3-bf8d-6912ea8338b0,e3cca121-bc7d-45f4-a2e8-cf312582dc16</EndpointsList> <PolicyId>872ce2c9-6a47-4368-9068-665686d69a29</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).