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/5098-B385-A2CC-4149-935C/sites/d1041db9-c509-47f6-bfab-63d7251af9cf/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": "4c5cbf84-34a8-4c38-9c58-df7629ba996e",
  "TargetGroupId": "4daa89f5-655a-4133-a5b7-ef7d9674b039",
  "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>4c5cbf84-34a8-4c38-9c58-df7629ba996e</SourceGroupId>
  <TargetGroupId>4daa89f5-655a-4133-a5b7-ef7d9674b039</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).