---
title: "Create My Org Role"
method: POST
path: "/orgs/me/roles"
tags: ["roles"]
---

# Create My Org Role

`POST /orgs/me/roles`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/orgs/me/roles`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

## Query parameters

- `org_id` string, uuid, nullable

## Request body

- RoleCreate
  - `name` string, required
  - `description` string, nullable
  - `permissions` PermissionMap: The closed JSON permissions object stored on each Role.
    - `techpacks` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `crm` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `wallet` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `roles` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `org_settings` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `profile_settings` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
  - `is_enabled` boolean

## Response `201`

Successful Response

- RoleResponse
  - `id` string, uuid, required
  - `org_id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `permissions` PermissionMap, required: The closed JSON permissions object stored on each Role.
    - `techpacks` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `crm` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `wallet` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `roles` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `org_settings` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
    - `profile_settings` CategoryPerms: Permission booleans for one category (``comment`` is used on techpacks).
      - `view` boolean
      - `comment` boolean
      - `create` boolean
      - `edit` boolean
      - `delete` boolean
  - `is_enabled` boolean, required
  - `member_count` integer
  - `is_system_role` boolean
  - `member_user_id` string, uuid, nullable
  - `display_name` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
