Groups
Create or update a Group from an automation GroupSpec
Create/update a Group from an automation Group Spec
put/organizations/{orgId}/environments/{envId}/groups
Path parameters
orgIdstring required
Example:dedd0e0f-b3e9-4d2f-89cd-b2a9de7cb145
organization ID
envIdstring required
Example:a44e0d1b-9fa9-4d64-8b76-3634623a2e27
environment ID
Query parameters
dryRunboolean
Example:true
For modifying requests, this parameter allow you to test the result of an endpoint without actually persisting the state of the underlying spec.
hridContainsUUIDboolean
When true, the HRID path or spec value is treated as an existing UUID rather than a human-readable identifier. This is to support backward compatibility for resources created before migration to the automation API and should not be used for new resources.
Request body
Example request
{
"hrid": "demo_api",
"name": "developers",
"members": [
{
"source": "gravitee",
"sourceId": "john.doe@acme.com",
"roles": {
"API": "USER",
"APPLICATION": "ADMIN",
"INTEGRATION": "ACME_READ_ONLY"
}
}
]
}Response
State of the successfully created/updated Group
Example response
{
"hrid": "demo_api",
"name": "developers",
"members": [
{
"source": "gravitee",
"sourceId": "john.doe@acme.com",
"roles": {
"API": "USER",
"APPLICATION": "ADMIN",
"INTEGRATION": "ACME_READ_ONLY"
}
}
],
"memberCount": 5
}