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

Moves endpoints to a different group.

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/0D40-0117-6E9C-40C6-92FF/sites/0944c8c9-1ea7-4357-98a4-0364a4775639/endpoints

Body Parameters

Additional information for setting a group for endpoints.

Either use EndpointsList or SourceGroupId to specify the endpoints being moved. If both are specified, EndpointsList is used. If both are left empty, all endpoints on the site are moved to the group specified by TargetGroupId.

SetGroupEndpointsRequestModel
NameDescriptionTypeAdditional Information
EndpointsList

Comma delimited string of endpoint ids. The endpoints are moved to the group specified by TargetGroupId.

string

None.

SourceGroupId

The id of the group where endpoints are moved from.

string

None.

TargetGroupId

The id of the group where endpoints are moved to.

string

Required

Inheritance

Value defining which policy should take effect.

  • 0 = The policy assignment of moved endpoints does not change. Endpoints which previously inherited their policies from the group's endpoint policy setting will inherit from the target group's endpoint policy setting.
  • 1 = The target group's policy will be applied to all moved endpoints.
  • 3 = No longer supported.
Default value is 0.

Note: Inheritance value 3 is no longer supported and behaves as if 0 was specified. If you used value 3 before, it is recommended to switch to value 0 instead.

integer

None.

Sample Request

{
  "EndpointsList": null,
  "SourceGroupId": "2460a2f5-aa40-4ccc-8eff-a239fdbfdd49",
  "TargetGroupId": "5881605a-51c2-4bdd-9f5f-363fadbdc655",
  "Inheritance": 1
}                    
<SetGroupEndpointsRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webroot.UnityAPI.ServiceExtension.Console.Models">
  <EndpointsList i:nil="true" />
  <Inheritance>1</Inheritance>
  <SourceGroupId>2460a2f5-aa40-4ccc-8eff-a239fdbfdd49</SourceGroupId>
  <TargetGroupId>5881605a-51c2-4bdd-9f5f-363fadbdc655</TargetGroupId>
</SetGroupEndpointsRequestModel>                    

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).