Create or update a Group from an automation GroupSpec
Changed onCreate/update a Group from an automation Group Spec
Request
- Base URLhttps://eu.cloudgate.gravitee.io/apim/automation
- URLhttps://eu.cloudgate.gravitee.io/apim/automation/organizations/{orgId}/environments/{envId}/groups
- Auth
- HTTP bearer
- or HTTP basic
- or HTTP bearer
Path parameters
organization ID
environment ID
Query parameters
For modifying requests, this parameter allow you to test the result of an endpoint without actually persisting the state of the underlying spec.
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.
When true, members in the group spec is not applied: no member is added and none is removed. Name, notifyMembers and defaultMemberRoles still converge. Use it for groups whose members an identity provider manages through group mapping.
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"
}
}
],
"defaultMemberRoles": {
"api": "USER",
"application": "USER",
"apiProduct": "USER"
}
}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"
}
}
],
"defaultMemberRoles": {
"api": "USER",
"application": "USER",
"apiProduct": "USER"
},
"memberCount": 5
}Changes
- warning
changed the pattern of the request property
from^[a-zA-Z0-9][a-zA-Z0-9_-]+[a-zA-Z0-9]$to^[a-zA-Z0-9][a-zA-Z0-9_.-]+[a-zA-Z0-9]$ - info
the
////response's property pattern was changed from^[a-zA-Z0-9][a-zA-Z0-9_-]+[a-zA-Z0-9]$to^[a-zA-Z0-9][a-zA-Z0-9_.-]+[a-zA-Z0-9]$for the status
- warning
- info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status - info
added the optional property
/////to the response with the status
- info