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/A446-6D71-136F-4BB9-8698/sites/dc6beae2-ed17-464d-809c-d2baf6f68fba/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": "6844b68d-6d1c-4933-b962-28d9d4114693,b715132c-d289-4ccd-be7c-7994086db300",
"PolicyId": "ff65543d-4be3-4eb4-8b54-d727920f9977"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>6844b68d-6d1c-4933-b962-28d9d4114693,b715132c-d289-4ccd-be7c-7994086db300</EndpointsList> <PolicyId>ff65543d-4be3-4eb4-8b54-d727920f9977</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).