---
title: "Change a member's role (owner)"
method: PATCH
path: "/api/v1/teams/{id}/members/{accountId}"
tags: ["Organizations"]
---

# Change a member's role (owner)

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

## Request

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

## Path parameters

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

## Request body

- object
  - `role` 'admin' | 'member', required

## Response `200`

{ team }

## Other responses

- `400`: Bad role
- `403`: Not allowed
- `404`: Not on this team

---

[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)
