---
title: "PATCH /auth/roles/tenant/{tenantLocator}/{roleLocator}"
method: PATCH
path: "/auth/roles/tenant/{tenantLocator}/{roleLocator}"
---

# PATCH /auth/roles/tenant/{tenantLocator}/{roleLocator}

`PATCH /auth/roles/tenant/{tenantLocator}/{roleLocator}`

## Request

- Base URL: `https://docs.socotra.com`
- URL: `https://docs.socotra.com/auth/roles/tenant/{tenantLocator}/{roleLocator}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/docs/auth/roles/tenant/:tenantLocator/:roleLocator/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenantLocator` string, uuid, required
- `roleLocator` string, ulid, required

## Request body

- PatchTenantRoleReq
  - `version` integer, required
  - `addPermissions` string[], required
  - `removePermissions` string[], required
  - `description` string

## Response `200`

OK

- RoleResponse
  - `name` string, required
  - `locator` string, ulid, required
  - `permissions` string[], required
  - `version` integer, required
  - `createdAt` string, date-time, required
  - `createdBy` string, uuid, required
  - `description` string, required

---

[API](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi.md) - [All operations](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/revisions/77ee7d8172b9?raw)
