viakite
Dashboard

API/Roles and groups/Set who is in a group

Set who is in a group

PUT/v1/orgs/{org}/groups/{group}/members

Up to 1000 members.

Secret keyNeeds members.rolesapi.vk.viabio.me

Path parameters

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

Body

member_idsstring[]requiredup to 1000 items

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
422validation_error