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/F100-02C2-E402-47F4-A7DF/sites/bbbe7542-d58b-4430-8854-8ed3f0818fdc/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": "58174220-aa96-4e3e-a41b-cc81da7f1a83,3f0f946f-dfc7-4b1e-967e-76df6d4baa1e",
"PolicyId": "e784a64b-304e-4322-a637-75e271abfbf7"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>58174220-aa96-4e3e-a41b-cc81da7f1a83,3f0f946f-dfc7-4b1e-967e-76df6d4baa1e</EndpointsList> <PolicyId>e784a64b-304e-4322-a637-75e271abfbf7</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).