---
title: "Update an existing role"
method: PUT
path: "/Roles/{id}"
tags: ["Roles"]
---

# Update an existing role

`PUT /Roles/{id}`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/Roles/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/Roles/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- UpdateRoleRequest
  - `name` string, nullable
  - `description` string, nullable
  - `permissions` string[], nullable
  - `minStaff` union
    - integer
    - string, int32
  - `maxStaff` union
    - integer
    - string, int32
  - `isPrimaryProvider` boolean, nullable
  - `canPrescribe` boolean, nullable
  - `requiresTimeTracking` boolean, nullable

## Response `200`

OK

- RoleResponseDto
  - `id` string
  - `name` string
  - `description` string, nullable
  - `isSystemRole` boolean
  - `permissions` string[]
  - `minStaff` union
    - integer
    - string, int32
  - `maxStaff` union
    - integer
    - string, int32
  - `isPrimaryProvider` boolean
  - `canPrescribe` boolean
  - `requiresTimeTracking` boolean
  - `createdAt` string, date-time
  - `updatedAt` string, date-time, nullable

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
