- v2
- v1
What is the Groups API?
The Groups API allows you to manage user-defined groups within your organization. These groups can represent teams, departments, or any custom segmentation of users, and are useful for assigning policies, budgets, or approval rules.This API enables you to:- Create and update groups
- Retrieve details of individual or all groups
- Delete groups when no longer needed
Available Endpoints
| Operation | Endpoint | Method |
|---|---|---|
| Retrieve all groups | /v2/groups | GET |
| Retrieve group by ID | /v2/groups/{uuid} | GET |
| Create group | /v2/groups | POST |
| Update group | /v2/groups/{uuid} | PATCH |
| Delete group | /v2/groups/{uuid} | DELETE |
Retrieve All Groups
List all groups defined in your organization.Endpoint
GET /v2/groupscURL Request
cURL
Sample JSON Response
JSON
Retrieve Group by UUID
Get full details of a specific group by its UUID.Endpoint
GET /v2/groups/{uuid}cURL Request
cURL
Sample JSON Response
JSON
Create a Group
Create a new user group by specifying a name and optional description.Endpoint
POST /v2/groupscURL Request
cURL
Sample JSON Response
JSON
Update a Group
Edit the name or description of an existing group.Endpoint
PATCH /v2/groups/{uuid}cURL Request
cURL
Delete a Group
Remove a group from your organization by UUID. Use with caution, as this may impact user-role associations or policy rules.Endpoint
DELETE /v2/groups/{uuid}cURL Request
cURL
**💡 Tip: ** Groups can be used to assign policies, budgets, or approval flows in a centralized way.**⚠️ Note: ** Deleting a group does not affect users, but it may disrupt processes tied to that group such as approval chains or spend limits.
Endpoint Reference
GET /api/v2/groups
Find all groupsParameters:| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page | query | integer | Zero-based page index (0..N) | |
size | query | integer | The size of the page to be returned |
PUT /api/v2/groups
Update group detailsPOST /api/v2/groups
Create GroupGET /api/v2/groups/{uuid}
Find group by UUIDParameters:| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
uuid | path | string | ✅ | Group UUID |
DELETE /api/v2/groups/{uuid}
Delete a single group by UUIDParameters:| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
uuid | path | string | ✅ | UUID of the group to delete |
