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

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": "f4f239dd-0a78-4b17-b98b-00432823bc90,40a366ca-0ed3-42b6-bf3e-3f596fd00a43",
  "PolicyId": "2f6eee40-baf3-4f69-b538-04f5c1209e0e"
}                    
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <EndpointsList>f4f239dd-0a78-4b17-b98b-00432823bc90,40a366ca-0ed3-42b6-bf3e-3f596fd00a43</EndpointsList>
  <PolicyId>2f6eee40-baf3-4f69-b538-04f5c1209e0e</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).