Create a role
Create a custom role in the workspace. Roles are the named permission levels a member can hold. A custom role grants exactly what its permission schemes grant, so create the schemes first and pass their ids in permission_scheme_ids.
Plane derives the role's slug from its name, for example qa-reviewer for QA Reviewer. If another role in the same namespace already uses that slug, Plane adds a numeric suffix, such as qa-reviewer-1.
Custom roles need granular access control on the workspace's plan. You need permission to create custom roles in the workspace, which workspace owners and admins have. For a workspace role, you also can't attach schemes that grant workspace permissions you don't hold yourself.
Assign the new role to someone with Update a workspace member or Update a project member. To delete, deactivate, or duplicate a role, use Plane.
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.
Body parameters
name:requiredstringDisplay name, for example QA Reviewer. Maximum 100 characters. Leading and trailing spaces are trimmed, and a blank name returns 400.
namespace:optionalstringWhat the role applies to: workspace for a workspace role or project for a project role. Defaults to workspace. It can't be changed later.
description:optionalstringFree-form description of what the role is for.
level:optionalintegerA rank for comparing and ordering roles, between 0 and 32767. Defaults to 10. The level doesn't grant access by itself: a custom role's permissions come only from its schemes.
permission_scheme_ids:optionalarray of string (uuid)The ids of the permission schemes the role is made of, in the order you want them attached. Each id must be a scheme in this workspace, or a system scheme, in the same namespace as the role. Ids must be unique. Omit it to create a role with no schemes, which grants nothing until you add some with Update a role.
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 missing or blank, namespace isn't workspace or project, 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 | You can't create custom roles in this workspace, the schemes grant workspace permissions you don't hold, or your token scope doesn't allow this. |
404 | not_found | No such workspace, or it's outside your tenant. |
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 POST \
"https://api.plane.so/api/v2/workspaces/my-team/roles/" \
-H "X-Api-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "QA Reviewer",
"namespace": "project",
"description": "Commenter access plus editing work items.",
"level": 10,
"permission_scheme_ids": ["f3b8a1c6-2d7e-4a95-8c14-5e9d0b3f7a28"]
}'import requests
response = requests.post(
"https://api.plane.so/api/v2/workspaces/my-team/roles/",
headers={"X-Api-Key": "your-api-key"},
json={
"name": "QA Reviewer",
"namespace": "project",
"description": "Commenter access plus editing work items.",
"level": 10,
"permission_scheme_ids": ["f3b8a1c6-2d7e-4a95-8c14-5e9d0b3f7a28"],
},
)
print(response.json())const response = await fetch("https://api.plane.so/api/v2/workspaces/my-team/roles/", {
method: "POST",
headers: {
"X-Api-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "QA Reviewer",
namespace: "project",
description: "Commenter access plus editing work items.",
level: 10,
permission_scheme_ids: ["f3b8a1c6-2d7e-4a95-8c14-5e9d0b3f7a28"],
}),
});
const data = await response.json();{
"id": "9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88",
"name": "QA Reviewer",
"slug": "qa-reviewer",
"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"],
"permissions": [
"comment:create",
"comment:edit+creator",
"cycle:view",
"module:view",
"project:view",
"state:view",
"workitem:edit",
"workitem:view"
],
"updated_at": "2026-11-20T10:15:00.482913Z"
}{
"type": "invalid_request",
"code": "invalid_request",
"detail": "One or more fields failed validation.",
"errors": [
{
"field": "permission_schemes",
"code": "invalid",
"message": "A project-namespace role cannot compose schemes from another namespace: release-managers (workspace)."
}
]
}
