Creates a new group within the organization. Groups can be used to manage bulk access to applications.
Request Body
Name
Type
Required
Description
name
string
Required
Name of the group. Maximum 100 characters.e.g. Engineering
description
string
Optional
Optional description of the group. Maximum 500 characters.e.g. Core engineering team with access to all developer tooling.
Response Fields
Name
Type
Required
Description
id
string
Optional
Unique identifier of the created group.
name
string
Optional
Name of the group.
description
string
Optional
Description of the group.
memberCount
number
Optional
Number of members in the group.
createdAt
string
Optional
ISO 8601 creation timestamp.
Response Example
{
"id": "grp_01hx9z1q2w3e4r5t6y7u",
"name": "Engineering",
"description": "Core engineering team with access to all developer tooling.",
"memberCount": 0,
"createdAt": "2024-06-01T12:00:00Z"
}
Code Examples
curl -X POST "https://api.sutraid.com/api/v1/groups" \
-H "Authorization: Bearer <your_token>" \
-H "x-org-id: <your_org_id>" \
-H "Content-Type: application/json" \
-d '{
"name": "Engineering",
"description": "Core engineering team with access to all developer tooling."
}'
PUT/api/v1/groups/:idUpdate groupBearer Token▾
Updates the name or description of an existing group.
Parameters
Name
Type
Required
Description
id
string (UUID)
Required
Unique identifier of the group to update.e.g. grp_01hx9z1q2w3e4r5t6y7u
Request Body
Name
Type
Required
Description
name
string
Optional
Updated group name. Maximum 100 characters.e.g. Platform Engineering
description
string
Optional
Updated group description. Maximum 500 characters.e.g. Platform and infrastructure team.
PUT/api/v1/groups/:id/usersSet group membersBearer Token▾
Replaces the entire set of members for a group with the provided list of user IDs. Any users not in the list will be removed from the group.
Parameters
Name
Type
Required
Description
id
string (UUID)
Required
Unique identifier of the group.e.g. grp_01hx9z1q2w3e4r5t6y7u
Request Body
Name
Type
Required
Description
userIds
string[]
Required
Array of user UUIDs to set as group members. Replaces the existing membership list entirely.e.g. ["usr_01hx9z1q2w3e4r5t6y7u", "usr_02hx9z1q2w3e4r5t6y7v"]
PUT/api/v1/groups/:id/applicationsSet group applicationsBearer Token▾
Replaces all application assignments for a group with the provided list of application IDs. All members of the group will inherit access to the specified applications.
Parameters
Name
Type
Required
Description
id
string (UUID)
Required
Unique identifier of the group.e.g. grp_01hx9z1q2w3e4r5t6y7u
Request Body
Name
Type
Required
Description
applicationIds
string[]
Required
Array of application UUIDs to assign to the group. Replaces the existing application list entirely.e.g. ["app_01hx9z1q2w3e4r5t6y7u", "app_02hx9z1q2w3e4r5t6y7v"]
Response Fields
Name
Type
Required
Description
id
string
Optional
Group identifier.
applications
Application[]
Optional
Updated list of applications assigned to the group.