viakite
Dashboard

API/Roles and groups/Rename a group or change its roles

Rename a group or change its roles

PATCH/v1/orgs/{org}/groups/{group}

A field left out is not changed.

Secret keyNeeds roles.manageapi.vk.viabio.me

Path parameters

orgstringrequired
The organization's id (org_…).
groupstringrequired
The group's id (grp_…).

Body

namestringup to 60 chars
rolesRoleGrant[]
A role for the whole organization (no project_ids) or for chosen projects.
Show 2 fields
rolestringrequired
A built-in role key (admin) or a custom role id (rol_…).
project_idsstring[] | null
Null or empty for the whole organization.

Responses

The group.

idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
namestringrequired
rolesRoleGrant[]required
A role for the whole organization (no project_ids) or for chosen projects.
Show 2 fields
rolestringrequired
A built-in role key (admin) or a custom role id (rol_…).
project_idsstring[] | null
Null or empty for the whole organization.
member_idsstring[]required
created_atstring · date-timerequired
A time in UTC, ISO 8601.
updated_atstring · date-timerequired
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.

StatusCode
409group_name_taken
422validation_error