PUT /service/api/console/gsm/{gsmKey}/sites/{siteId}/endpoints/policy

Applies a new policy to the specified endpoints.

Request Information

URI Parameters

NameDescriptionTypeAdditional 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/3FB5-19A6-B688-4122-B055/sites/10fbccf6-9715-455f-af21-9b90fb13bf06/endpoints/policy

Body Parameters

Additional information for setting a new policy.

SetPolicyEndpointsRequestModel
NameDescriptionTypeAdditional 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": "c23f33ae-9670-4d89-a05b-f3c3279fc5fa,000e5688-6172-43d7-ab49-f134ed0c378b",
  "PolicyId": "f1e92706-5a1b-48c6-a13e-8be2fbb694d3"
}                    
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <EndpointsList>c23f33ae-9670-4d89-a05b-f3c3279fc5fa,000e5688-6172-43d7-ab49-f134ed0c378b</EndpointsList>
  <PolicyId>f1e92706-5a1b-48c6-a13e-8be2fbb694d3</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).