---
title: "Change a workspace member role"
method: PATCH
path: "/credits/members/{memberId}"
tags: ["Workspace members"]
---

# Change a workspace member role

`PATCH /credits/members/{memberId}`

## Request

- Base URL: `https://api.paywithlocus.com/api`
- URL: `https://api.paywithlocus.com/api/credits/members/{memberId}`
- Auth: HTTP bearer

Requires owner or admin membership, members:manage, and recent MFA or passkey step-up. The owner's role cannot be changed here (use the transfer-ownership operation) and a member cannot change their own role.

## Path parameters

- `memberId` string, uuid, required

## Headers

- `X-Locus-Step-Up` string, password

## Request body

- object
  - `role` 'admin' | 'developer' | 'billing' | 'viewer', required

## Response `200`

Role updated

## Other responses

- `403`: Missing authorization or step-up
- `404`: Member not found
- `409`: The owner cannot be reassigned here, or the acting member tried to change their own role, or the member changed (for example became the owner) before this request completed

---

[API](https://skmtc.dev/paywithlocus/apis/locus-pro-api.md) - [All operations](https://skmtc.dev/paywithlocus/apis/locus-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paywithlocus/apis/locus-pro-api/revisions/aab8fa5d6cef?raw)
