Skip to content

Create a permission scheme ​

POST/api/v2/workspaces/{slug}/permission-schemes/

Create a custom permission scheme in the workspace. A permission scheme is a named set of permissions that a role can hold. After you create one, attach it to a custom role with Create a role or Update a role.

Plane derives the scheme's slug from its name, for example qa-review for QA review, and adds a numeric suffix if another scheme in the same namespace already uses it.

Plane adjusts the permission list before it saves it, so read permissions back from the response:

  • A workspace scheme always gets workspace:view, and a project scheme always gets project:view, added at the end if you left it out.
  • A permission on a resource type Plane doesn't know, such as a retired one, is dropped without an error. A misspelled action on a known resource, such as workitem:veiw, returns 400.
  • In a workspace scheme, project:view is dropped when no other permission in the scheme applies inside projects.

Custom schemes need granular access control on the workspace's plan. You need permission to manage the workspace, which workspace owners and admins have. A workspace scheme can't include workspace permissions you don't hold yourself.

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 review. Maximum 255 characters.

namespace:optionalstring

What the scheme applies to: workspace or project. Defaults to workspace. It can't be changed later, and a role can only use schemes from its own namespace.

description:optionalstring

Free-form description of what the scheme is for.

permissions:optionalarray of string

The permissions the scheme grants, as <resource_type>:<action> strings such as workitem:edit. Each string is at most 100 characters.

  • Add one condition with + to grant a permission only in that case, for example workitem:delete+creator for work items the member created. A string with more than one condition returns 400.
  • Wildcards such as * and workitem:* aren't allowed in custom schemes and return 400.
  • A project scheme can hold only permissions on resources inside a project, such as workitem, cycle, or comment. A workspace-level permission such as workspace:manage returns 400. A workspace scheme can hold both kinds.

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: description, id, is_system, name, namespace, permissions, slug, sort_order, updated_at.

Scopes ​

workspaces.roles:write

Errors ​

StatusCodeCause
400invalid_requestname is missing, namespace isn't workspace or project, or a permission is invalid: an unknown action, a wildcard, more than one condition, or a workspace-level permission in a project scheme.
401unauthorizedMissing or invalid credentials.
402payment_requiredCustom permission schemes aren't included in the workspace's plan.
403forbiddenYou can't manage this workspace, the scheme grants 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 scheme 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 permission scheme
bash
curl -X POST \
  "https://api.plane.so/api/v2/workspaces/my-team/permission-schemes/" \
  -H "X-Api-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "QA review",
  "namespace": "project",
  "description": "Comment on and edit work items, read cycles, modules, and states.",
  "permissions": [
    "comment:create",
    "comment:edit+creator",
    "cycle:view",
    "module:view",
    "state:view",
    "workitem:edit",
    "workitem:view"
  ]
}'
Response201
json
{
  "id": "f3b8a1c6-2d7e-4a95-8c14-5e9d0b3f7a28",
  "name": "QA review",
  "slug": "qa-review",
  "description": "Comment on and edit work items, read cycles, modules, and states.",
  "namespace": "project",
  "permissions": [
    "comment:create",
    "comment:edit+creator",
    "cycle:view",
    "module:view",
    "state:view",
    "workitem:edit",
    "workitem:view",
    "project:view"
  ],
  "is_system": false,
  "sort_order": 65535,
  "updated_at": "2026-11-20T10:12:48.093517Z"
}
Response400
json
{
  "type": "invalid_request",
  "code": "invalid_request",
  "detail": "One or more fields failed validation.",
  "errors": [
    {
      "field": "permissions",
      "code": "invalid",
      "message": "Wildcard permissions are not allowed in custom schemes: workitem:*"
    }
  ]
}