---
title: "Set Org Role Enabled"
method: PATCH
path: "/orgs/{org_id}/roles/{role_id}/enabled"
tags: ["roles"]
---

# Set Org Role Enabled

`PATCH /orgs/{org_id}/roles/{role_id}/enabled`

## 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/{org_id}/roles/{role_id}/enabled`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

## Path parameters

- `org_id` string, uuid, nullable, required
- `role_id` string, uuid, required

## Request body

- SetEnabledRequest
  - `enabled` boolean, required

## Response `200`

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)
