---
title: "Update a member's role (admin only)"
method: PUT
path: "/api/workspaces/{workspace_id}/members/{user_id}"
tags: ["members"]
---

# Update a member's role (admin only)

`PUT /api/workspaces/{workspace_id}/members/{user_id}`

## Request

- Base URL: `https://api.hillstar.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hillstar.ai/api/workspaces/{workspace_id}/members/{user_id}`
- Auth: none declared

## Path parameters

- `workspace_id` integer, required: Workspace ID
- `user_id` integer, required: Target user ID

## Request body

- MemberUpdateRequest
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `role` string, required

## Response `200`

OK

- MemberResponse
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `created_at` string, date-time, required
  - `email` string
  - `first_name` string
  - `id` integer, required
  - `last_name` string
  - `role` string, required
  - `user_id` integer, required
  - `workspace_id` integer, required

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/hillstar/apis/rfpai-api-go.md) - [All operations](https://skmtc.dev/hillstar/apis/rfpai-api-go/llms.txt) - [OpenAPI document](https://skmtc.dev/hillstar/apis/rfpai-api-go/revisions/b2532dc47fc6?raw)
