Update a role
Change a custom role. Roles are the named permission levels a member can hold. Send only the keys you want to change. Omitted keys keep their current value.
- Renaming a role also regenerates its
slugfrom the new name. Members who hold the role keep it, but anything that stored the old slug must read it again. Store a role'sid, which never changes. permission_scheme_idsreplaces the role's whole list of schemes, in the order you send. To add one scheme, send the current ids plus the new one. The change applies to every member who holds the role.- A role's
namespacecan't be changed.
System roles can't be changed and return 403. Custom roles need granular access control on the workspace's plan. You need permission to edit custom roles in the workspace, which workspace owners and admins have. For a workspace role, you also can't add schemes that grant workspace permissions you don't hold. Schemes the role already has are not rechecked.
Path parameters
slug:requiredstringThe workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.
pk:requiredstring (uuid)The role id. A role slug in this position returns 404.
Body parameters
name:optionalstringDisplay name. Maximum 100 characters. A blank name returns 400. Changing it changes the role's slug.
description:optionalstringFree-form description of what the role is for.
level:optionalintegerA rank for comparing and ordering roles, between 0 and 32767. The level doesn't grant access by itself.
permission_scheme_ids:optionalarray of string (uuid)The complete, ordered list of permission schemes for the role. It replaces the current list. Each id must be a scheme in this workspace, or a system scheme, in the role's namespace. Ids must be unique.
namespace:optionalstringAccepted only when it matches the role's current namespace. Any other value returns 400.
Response shaping
fields:optionalstringComma-separated list of fields to return. Fields you don't request are left out of the response instead of coming back as null. id is always included. Pass all to get every requestable field. An unknown field name returns 400. See Sparse fields.
Requestable here: based_on_id, description, id, is_system, level, name, namespace, permission_scheme_ids, permissions, slug, status, updated_at.
expand:optionalstringComma-separated relations to embed alongside the ids: permission_schemes (the permission schemes attached to the role, each with id, name, slug, namespace, and is_system).
Expanded objects get their own key: ?expand=permission_schemes keeps permission_scheme_ids and adds a permission_schemes array next to it. An unknown value returns 400. See Expanding relations.
Scopes
workspaces.roles:write
Errors
| Status | Code | Cause |
|---|---|---|
400 | invalid_request | name is blank, namespace differs from the role's, or a scheme id is unknown, repeated, from another workspace, or from a different namespace than the role. |
401 | unauthorized | Missing or invalid credentials. |
402 | payment_required | Custom roles aren't included in the workspace's plan. |
403 | forbidden | The role is a system role, you can't edit custom roles in this workspace, the added schemes grant workspace permissions you don't hold, or your token scope doesn't allow this. |
404 | not_found | No role with this id in the workspace. |
406 | not_acceptable | The Accept header asks for a representation the API can't produce. |
409 | conflict | Another request saved a role with the same slug at the same moment. Retry the request. |
413 | payload_too_large | The request body is over the size limit. |
415 | unsupported_media_type | The Content-Type isn't one this endpoint accepts. |
429 | rate_limited | Throttled. Honor the Retry-After header before retrying. |
curl -X PATCH \
"https://api.plane.so/api/v2/workspaces/my-team/roles/9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88/" \
-H "X-Api-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "QA Lead",
"permission_scheme_ids": [
"f3b8a1c6-2d7e-4a95-8c14-5e9d0b3f7a28",
"2b7d5e90-4c1a-4f68-8e3d-6a9f0c2b7e14"
]
}'import requests
response = requests.patch(
"https://api.plane.so/api/v2/workspaces/my-team/roles/9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88/",
headers={"X-Api-Key": "your-api-key"},
json={
"name": "QA Lead",
"permission_scheme_ids": [
"f3b8a1c6-2d7e-4a95-8c14-5e9d0b3f7a28",
"2b7d5e90-4c1a-4f68-8e3d-6a9f0c2b7e14",
],
},
)
print(response.json())const response = await fetch(
"https://api.plane.so/api/v2/workspaces/my-team/roles/9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88/",
{
method: "PATCH",
headers: {
"X-Api-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "QA Lead",
permission_scheme_ids: [
"f3b8a1c6-2d7e-4a95-8c14-5e9d0b3f7a28",
"2b7d5e90-4c1a-4f68-8e3d-6a9f0c2b7e14",
],
}),
},
);
const data = await response.json();{
"id": "9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88",
"name": "QA Lead",
"slug": "qa-lead",
"description": "Commenter access plus editing work items.",
"namespace": "project",
"is_system": false,
"level": 10,
"status": "active",
"based_on_id": null,
"permission_scheme_ids": [
"f3b8a1c6-2d7e-4a95-8c14-5e9d0b3f7a28",
"2b7d5e90-4c1a-4f68-8e3d-6a9f0c2b7e14"
],
"permissions": [
"comment:create",
"comment:edit+creator",
"cycle:view",
"module:view",
"project:view",
"state:view",
"workitem:create",
"workitem:delete+creator",
"workitem:edit",
"workitem:view"
],
"updated_at": "2026-11-24T14:08:37.615204Z"
}{
"type": "forbidden",
"code": "forbidden",
"detail": "System roles cannot be modified."
}
