---
title: "Update Users Role"
method: PATCH
path: "/api/v1/company/users/{model_id}/role"
tags: ["company"]
---

# Update Users Role

`PATCH /api/v1/company/users/{model_id}/role`

## Request

- Base URL: `https://api.scade.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.scade.pro/api/v1/company/users/{model_id}/role`
- Auth: HTTP basic

## Path parameters

- `model_id` integer, required

## Headers

- `x-company-id` string
- `x-auth-as-staff` boolean
- `x-owner-payment-flag` boolean
- `x-auth-token` string
- `x-company-username` string
- `accept-language` string

## Cookies

- `ory_kratos_session` string

## Request body

- UserCompanyUpdateSchema
  - `is_staff` boolean, required

## Response `200`

Successful Response

- UserCompanyReadSchema
  - `id` integer, required
  - `company_id` string, required
  - `is_staff` boolean, required
  - `is_owner` boolean, required
  - `user` UserReadSchema, required
    - `id` integer, required
    - `email` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/scade/apis/scade-prod.md) - [All operations](https://skmtc.dev/scade/apis/scade-prod/llms.txt) - [OpenAPI document](https://skmtc.dev/scade/apis/scade-prod/revisions/f3d7ba71abbc?raw)
