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/8BC7-40B2-A1BE-4E6A-BDE0/sites/91959a43-be48-4d99-bf18-85635231c2c7/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": "67d396d7-5e88-4402-9611-58736c08c276,4bf578c0-d360-4e9a-afa1-5e1e4dbfe6e3",
"PolicyId": "d8af2d4c-7997-49e5-bec0-04c726185211"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>67d396d7-5e88-4402-9611-58736c08c276,4bf578c0-d360-4e9a-afa1-5e1e4dbfe6e3</EndpointsList> <PolicyId>d8af2d4c-7997-49e5-bec0-04c726185211</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).