---
title: "Update Member"
method: PATCH
path: "/v1/members/{user_id}/"
tags: ["Members"]
---

# Update Member

`PATCH /v1/members/{user_id}/`

## Request

- Base URL: `https://logfire-api.pydantic.dev/api`
- URL: `https://logfire-api.pydantic.dev/api/v1/members/{user_id}/`
- Auth: OAuth 2
  - Authorization code: `api/oauth/authorize`
  - Token URL: `/api/oauth/token` scopes: `organization:write_member`
- TypeScript: <https://skmtc.dev/pydantic/apis/pydantic-logfire-api/docs/v1/members/:user_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update a member's role in the token's organization.

## Path parameters

- `user_id` string, uuid, required

## Request body

- OrganizationMemberUpdateV1
  - `role` 'admin' | 'member' | 'guest' | 'billing', required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/pydantic/apis/pydantic-logfire-api.md) - [All operations](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/revisions/7996e45256f4?raw)
