Skip to content

Update a role ​

PATCH/api/v2/workspaces/{slug}/roles/{pk}/

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 slug from the new name. Members who hold the role keep it, but anything that stored the old slug must read it again. Store a role's id, which never changes.
  • permission_scheme_ids replaces 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 namespace can'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:requiredstring

The 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:optionalstring

Display name. Maximum 100 characters. A blank name returns 400. Changing it changes the role's slug.

description:optionalstring

Free-form description of what the role is for.

level:optionalinteger

A 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:optionalstring

Accepted only when it matches the role's current namespace. Any other value returns 400.

Response shaping ​

fields:optionalstring

Comma-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:optionalstring

Comma-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 ​

StatusCodeCause
400invalid_requestname 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.
401unauthorizedMissing or invalid credentials.
402payment_requiredCustom roles aren't included in the workspace's plan.
403forbiddenThe 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.
404not_foundNo role with this id in the workspace.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409conflictAnother request saved a role with the same slug at the same moment. Retry the request.
413payload_too_largeThe request body is over the size limit.
415unsupported_media_typeThe Content-Type isn't one this endpoint accepts.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Update a role
bash
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"
  ]
}'
Response200
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"
}
Response403
json
{
  "type": "forbidden",
  "code": "forbidden",
  "detail": "System roles cannot be modified."
}