---
title: "Update member role"
method: POST
path: "/v0/api/organizations/{organizationId}/members/role"
tags: ["Organizations"]
---

# Update member role

`POST /v0/api/organizations/{organizationId}/members/role`

## Request

- Base URL: `https://api.anything.com`
- URL: `https://api.anything.com/v0/api/organizations/{organizationId}/members/role`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/anything/apis/anything-api/docs/v0/api/organizations/:organizationId/members/role/post.ts> (a function with typed inputs; its response is checked against the schema)

Changes the role of an organization member. Requires OWNER or ADMIN role.

## Path parameters

- `organizationId` string, uuid, required

## Request body

- object
  - `email` string, email, required
  - `role` 'OWNER' | 'ADMIN' | 'EDITOR' | 'VIEWER', required

## Response `200`

Role updated

- object
  - `success` boolean, required
  - `userId` string, uuid, required
  - `role` string, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found — the referenced resource does not exist (including malformed resource IDs)

---

[API](https://skmtc.dev/anything/apis/anything-api.md) - [All operations](https://skmtc.dev/anything/apis/anything-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anything/apis/anything-api/revisions/1475488f3446?raw)
