---
title: "Update a customer app member role"
method: PATCH
path: "/accountant/companies/{customerId}/members/{id}"
tags: ["Accountants"]
---

# Update a customer app member role

`PATCH /accountant/companies/{customerId}/members/{id}`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/members/{id}`
- Auth: HTTP bearer

## Request body

- UpdateCompanyMemberInput
  - `role` 'owner' | 'admin' | 'cfo' | 'member' | 'viewer', required

## Response `200`

Customer app member role updated

- CompanyMemberResponse
  - `success` boolean
  - `data` CompanyMember
    - `id` string, uuid
    - `companyId` string, uuid
    - `userId` string, uuid
    - `role` 'owner' | 'admin' | 'cfo' | 'member' | 'viewer'
    - `inviteStatus` string
    - `invitedAt` string, date-time, nullable
    - `joinedAt` string, date-time, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Customer app member not found
- `422`: Request failed validation

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
