---
title: "Update team role"
method: PATCH
path: "/v1/teams/{teamId}/roles/{roleId}"
tags: ["Team Roles", "team"]
---

# Update team role

`PATCH /v1/teams/{teamId}/roles/{roleId}`

## Request

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

Updates a platform role for a team.

## Path parameters

- `teamId` string, required: ID of the team
- `roleId` string, required: ID of the team 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.
  - `restrictions` object: Project access restrictions for this role.
    - `enabled` boolean, required
    - `projects` string[]
    - `restrictionMode` 'in' | 'notIn'

## Response `200`

Details about the updated team 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)
