Create Group Nesting
POST {{apiPath}}/environments/{{envID}}/groups/{{groupID}}/memberOfGroups
The POST {{apiPath}}/environments/{{envID}}/groups/{{groupID}}/memberOfGroups operation creates a nested group. Members of the group identified in the request URL are dynamically added to the group specified in the body of the request. See the Nesting groups section for more information.
Prerequisites
See Groups for important overview information.
Create a group to get a
groupIDfor the endpoint and create another group to get agroupIDfor the body. See also Groups.
See the Groups data model for full property descriptions.
| Property | Type | Required? |
|---|---|---|
id | String | Required |
Request Body
{"id"=>"{{groupNestedID}}"}
RESPONSES
status: Created
{"_links":{"self":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/groups/1e600e48-2aa5-496a-81cf-7ff1fa3d696b/memberOfGroups/e1d6564e-bc8e-443c-ba01-70af86cf06e4"},"environment":{"href":"https://api.pingone.com/v1/environments/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"}},"id":"e1d6564e-bc8e-443c-ba01-70af86cf06e4","environment":{"id":"abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6"},"name":"Group A","type":"DIRECT"}