/auth/v1/groups/<group_ID>: PATCH
Updates the attributes of an existing group.
The following table shows which roles can access this REST API endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
Χ | Χ | Χ | ✓ | Χ |
Synopsis of the request URL
curl -k -H 'Content-Type: application/json' -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/groups/<group_ID> -X PATCH -d ‘<json details to update>'
Supported request types and response formats
You can update the following attributes of a group.
- Name
- Description
- Domain ID
Supported request types:
- PATCH
- JSON
Examples
The following example shows how to update the attributes of a group:
Request:
curl -k -H 'Content-Type: application/json' -H ‘Authorization: Bearer <token>’ https://<spectrum_discover_host>/auth/v1/groups/a51f84bfeb034b12a9a362109d78bec3 -X PATCH -d ‘{"name": "AdminGroup", "description":"Verifies installations", "domain_id": "Default"}’
Response:
200 OK