Skip to content

Create a role ​

POST/api/v2/workspaces/{slug}/roles/

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:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

Body parameters ​

name:requiredstring

Display name, for example QA Reviewer. Maximum 100 characters. Leading and trailing spaces are trimmed, and a blank name returns 400.

namespace:optionalstring

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

Free-form description of what the role is for.

level:optionalinteger

A 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: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 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.
401unauthorizedMissing or invalid credentials.
402payment_requiredCustom roles aren't included in the workspace's plan.
403forbiddenYou 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.
404not_foundNo such workspace, or it's outside your tenant.
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.
Create a role
bash
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"]
}'
Response201
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"
}
Response400
json
{
  "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)."
    }
  ]
}