---
title: "Change a member's role"
method: PATCH
path: "/team/members/{userId}"
tags: ["Team"]
---

# Change a member's role

`PATCH /team/members/{userId}`

## Request

- Base URL: `https://api.flogpt.com/api/v1`
- URL: `https://api.flogpt.com/api/v1/team/members/{userId}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

The owner's row cannot be changed and `owner` cannot be assigned —
ownership carries billing and lives on a different field.

## Request body

- object
  - `role` 'admin' | 'supervisor' | 'agent', required

## Response `200`

Updated member

## Other responses

- `400`: The request is invalid.
- `404`: The resource does not exist in the API key's organization.

---

[API](https://skmtc.dev/flogpt/apis/flogpt-organization-api.md) · [All operations](https://skmtc.dev/flogpt/apis/flogpt-organization-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flogpt/apis/flogpt-organization-api/revisions/c3a6cff76797?raw)
