---
title: "Change a member's role (owner only)"
method: PUT
path: "/api/workspaces/{id}/members/{userId}"
tags: ["Workspaces"]
---

# Change a member's role (owner only)

`PUT /api/workspaces/{id}/members/{userId}`

## Path parameters

- `id` string, required
- `userId` string, required

## Request body

- MemberRoleUpdateRequest
  - `role` string, required

## Response `204`

No Content

## Other responses

- `400` — empty role
- `403` — owner only
- `500` — internal error

## Changes

- **2026-05-22** `022de8fbcf5d` — 1 info
  - endpoint added
- **2026-05-22** `1ba39f384b63` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentserver/apis/agentserver-api/changes/api/workspaces/:id/members/:userId/put.md)

---

[API](https://skmtc.dev/agentserver/apis/agentserver-api.md) · [All operations](https://skmtc.dev/agentserver/apis/agentserver-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentserver/agentserver-api/revisions/e8c329825b4e/schema)
