v5

latestOpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-07-0330110112.1 KB
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

hridstring required

A unique human readable id identifying this resource

namestring required

Group's name.

notifyMembersboolean

If true, members will be notified when the group is synced with APIM.

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

hridstring required

A unique human readable id identifying this resource

namestring required

Group's name.

notifyMembersboolean

If true, members will be notified when the group is synced with APIM.

idstring

Resource UUID.

environmentIdstring

The environment ID.

organizationIdstring

The organization ID.

memberCountinteger

Number of members in the 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
}