viakite
Dashboard

API/Roles and groups/Change a custom role

Change a custom role

PATCH/v1/orgs/{org}/roles/{role}

A field left out is not changed.

Secret keyNeeds roles.manageapi.vk.viabio.me

Path parameters

orgstringrequired
The organization's id (org_…).
rolestringrequired
The custom role's id (rol_…).

Body

namestringup to 60 chars
descriptionstringup to 300 chars
permissionsstring[]

Responses

The role.

idstringrequired
A prefixed ULID; the prefix names the kind (prj_… a project, org_… an organization).
namestringrequired
descriptionstringrequired
permissionsstring[]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": "rol_01JD8Q2M4W9XK3T7B5",
3 "name": "Production",
4 "description": "string",
5 "permissions": [
6 "string"
7 ],
8 "created_at": "2026-11-21T09:30:00Z",
9 "updated_at": "2026-11-21T09:30:00Z"
10}

Errors

Every error has the same shape: error.code, a message for people and details.

StatusCode
409role_name_taken
422validation_error