---
title: "Change a workspace member's role (ADMIN+ only)"
method: PATCH
path: "/api/workspaces/{workspaceId}/members/{memberId}/role"
tags: ["Workspace Members"]
---

# Change a workspace member's role (ADMIN+ only)

`PATCH /api/workspaces/{workspaceId}/members/{memberId}/role`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/members/{memberId}/role`
- Auth: API key in cookie `hiveship_access`

## Path parameters

- `workspaceId` string, required
- `memberId` string, required

## Request body

- object
  - `role` 'ADMIN' | 'MEMBER' | 'VIEWER', required

## Response `200`

Member role updated

- object
  - `success` boolean, required
  - `data` object, required
    - `id` string, cuid, required
    - `role` 'OWNER' | 'ADMIN' | 'MEMBER' | 'VIEWER', required
    - `joinedAt` string, date-time, required
    - `user` object, required
      - `id` string, cuid, required
      - `name` string, required
      - `email` string, email, required
      - `avatarUrl` string, nullable, required
    - `permissions` string[], required

## Other responses

- `400`: Validation error
- `403`: Insufficient permissions
- `404`: Member not found

---

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