---
title: "Create Role"
method: POST
path: "/api/permissions/roles"
tags: ["Permissions"]
---

# Create Role

`POST /api/permissions/roles`

Creates a new permissions role.

Provide a `name` for the new role. The role is immediately available for use
in permission policies.

To attach the role to resources, create or update a policy using
[`POST /api/permissions/policies`](../../../api-reference/permissions/policies/create).

## Headers

- `X-Polytomic-Version` string

## Request body

- CreateRoleRequest
  - `name` string, required
  - `organization_id` string, uuid, nullable

## Response `200`

OK

- RoleResponseEnvelope
  - `data` RoleResponse
    - `id` string, uuid
    - `name` string
    - `organization_id` string, uuid
    - `system` boolean

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/polytomic/apis/polytomic-api.md) · [All operations](https://skmtc.net/polytomic/apis/polytomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polytomic/polytomic-api/versions/b509e00e80aa/schema)
