Create a group with roles
POST/ v1/ orgs/ {org}/ groups
The owner role can't be given to a group.
Path parameters
org
The organization's id (
org_…).Body
name
roles
A role for the whole organization (no project_ids) or for chosen projects.
Show 2 fieldsHide fields
role
A built-in role key (
admin) or a custom role id (rol_…).project_ids
Null or empty for the whole organization.
Responses
The new group.
id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).name
roles
A role for the whole organization (no project_ids) or for chosen projects.
Show 2 fieldsHide fields
role
A built-in role key (
admin) or a custom role id (rol_…).project_ids
Null or empty for the whole organization.
member_ids
created_at
A time in UTC, ISO 8601.
updated_at
A time in UTC, ISO 8601.
Example response
1{2"id": "grp_01JD8Q2M4W9XK3T7B5",3"name": "Production",4"roles": [5{6"role": "rol_01JD8Q2M4W9XK3T7B5",7"project_ids": [8"prj_01JD8Q2M4W9XK3T7B5"9]10}11],12"member_ids": [13"mem_01JD8Q2M4W9XK3T7B5"14],15"created_at": "2026-11-21T09:30:00Z",16"updated_at": "2026-11-21T09:30:00Z"17}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
group_name_taken | |
validation_error |