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/193B-48A7-34AD-4D73-966B/sites/7bb2bb3b-f14a-4019-86c6-20e3a3d417e6/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": "9313fb03-fba4-474f-8606-45ec143d6e53,59b5e6af-6de3-4352-aba8-a4bb6fc2da50",
"PolicyId": "195d49ce-848c-43e8-bb53-0e30c73d7e32"
}
<SetPolicyEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models"> <EndpointsList>9313fb03-fba4-474f-8606-45ec143d6e53,59b5e6af-6de3-4352-aba8-a4bb6fc2da50</EndpointsList> <PolicyId>195d49ce-848c-43e8-bb53-0e30c73d7e32</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).