---
title: "Update org role"
method: PATCH
path: "/v1/org-roles/{roleId}"
tags: ["Org Roles", "org"]
---

# Update org role

`PATCH /v1/org-roles/{roleId}`

## Request

- Base URL: `https://placeholder/v1`
- URL: `https://placeholder/v1/v1/org-roles/{roleId}`
- Auth: none required
- TypeScript: <https://skmtc.dev/northflank/apis/northflank-api/docs/v1/org-roles/:roleId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Partially updates a platform role for the authenticated org.

## Path parameters

- `roleId` string, required: ID of the org role

## Request body

- object
  - `description` string: A description of the role.
  - `permissions` object: Permissions granted by this role.
    - `teamScope` string[]: Team-level RBAC permission strings.
    - `projectScope` string[]: Project-level RBAC permission strings.
    - `orgScope` string[]: Org-level RBAC permission strings.
  - `restrictions` object: Access restrictions for this role.
    - `enabled` boolean, required
    - `teams` object[]
      - `teamId` string, required
      - `restrictions` object
        - `enabled` boolean, required
        - `projects` string[]
        - `restrictionMode` 'in' | 'notIn'
  - `directoryGroups` string[]: An array of linked directory groups. Users belonging to any of these linked directory groups will automatically be a member of this role.

## Response `200`

Details about the updated org role.

---

[API](https://skmtc.dev/northflank/apis/northflank-api.md) - [All operations](https://skmtc.dev/northflank/apis/northflank-api/llms.txt) - [OpenAPI document](https://skmtc.dev/northflank/apis/northflank-api/revisions/503a425aa44f?raw)
