---
title: "更新成员角色"
method: PUT
path: "/organizations/{id}/members/{tenant_id}"
tags: ["组织管理"]
---

# 更新成员角色

`PUT /organizations/{id}/members/{tenant_id}`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/organizations/{id}/members/{tenant_id}`
- Auth: API key in header `Authorization`

更新组织成员（空间）的角色（需要管理员权限）

## Path parameters

- `id` string, required
- `tenant_id` string, required

## Request body

- GithubComTencentWeKnoraInternalTypesUpdateMemberRoleRequest
  - `role` 'admin' | 'editor' | 'viewer', required

## Response `200`

OK

- InternalHandlerMessageResponse
  - `message` string
  - `success` boolean

## Other responses

- `403`: Forbidden

## Changes

- **2025-12-16** `edf61e68559d`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/organizations/:id/members/:tenant_id/put.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/685d1f9fce30?raw)
