---
title: "Change a member's role"
method: PATCH
path: "/spaces/{spaceId}/members/{email}"
tags: ["Spaces"]
---

# Change a member's role

`PATCH /spaces/{spaceId}/members/{email}`

## Request

- Base URL: `https://api.mockflow.com/v1`
- URL: `https://api.mockflow.com/v1/spaces/{spaceId}/members/{email}`
- Auth: HTTP bearer

## Request body

- object
  - `role` 'admin' | 'editor' | 'reviewer', required

## Response `200`

OK

- SpaceMember
  - `id` string
  - `email` string, email
  - `name` string
  - `role` 'owner' | 'admin' | 'editor' | 'reviewer': The product's roles. Owner is the workspace that holds the board or space and cannot be granted or transferred. Admin can rename and share, editor can edit, reviewer can view, export and add comment items. There is no viewer role and no pending state.
  - `hasAccount` boolean: False for someone invited who has not signed up yet.
  - `invited` boolean: Set on the response to a first add when the invitation mail went out.

## Other responses

- `429`: Too many requests.
- `4XX`: An error. See the envelope and the code list on the Errors page.

---

[API](https://skmtc.dev/mockflow/apis/mockflow-boards-api.md) - [All operations](https://skmtc.dev/mockflow/apis/mockflow-boards-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mockflow/apis/mockflow-boards-api/revisions/1a890390518c?raw)
