---
title: "POST /accounts/organization/members/role/"
method: POST
path: "/accounts/organization/members/role/"
tags: ["accounts"]
---

# POST /accounts/organization/members/role/

`POST /accounts/organization/members/role/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/accounts/organization/members/role/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Update a member's org level and/or workspace level.

## Request body

- MemberRoleUpdate
  - `user_id` string, uuid, required
  - `org_level` 15 | 8 | 3 | 1, nullable
  - `ws_level` 8 | 3 | 1, nullable
  - `workspace_id` string, uuid, nullable: Required when updating ws_level.
  - `workspace_access` WorkspaceAccessInput[]: List of {workspace_id, level} for explicit workspace grants on demotion.
    - `workspace_id` string, uuid, required
    - `level` 8 | 3 | 1

## Response `200`

OK

- MemberRoleUpdateResponse
  - `status` boolean, required
  - `result` MemberRoleUpdateResult, required
    - `message` string, required
    - `changes` object, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
