---
title: "Change a member's role and/or home unit (admin; only the owner changes admins)"
method: PATCH
path: "/api/v1/organizations/{id}/members/{accountId}"
tags: ["Organizations"]
---

# Change a member's role and/or home unit (admin; only the owner changes admins)

`PATCH /api/v1/organizations/{id}/members/{accountId}`

## Request

- Base URL: `https://philforms.com`
- URL: `https://philforms.com/api/v1/organizations/{id}/members/{accountId}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required
- `accountId` string, required

## Request body

- object
  - `role` 'admin' | 'member' | 'viewer'
  - `unit_id` string

## Response `200`

{ member }

---

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