---
title: "Sets the given member's org-scoped role."
method: PUT
path: "/organizations/{organizationId}/members/{customerId}/role"
tags: ["Organization"]
---

# Sets the given member's org-scoped role.

`PUT /organizations/{organizationId}/members/{customerId}/role`

## Request

- Base URL: `https://api.rapidata.ai`
- URL: `https://api.rapidata.ai/organizations/{organizationId}/members/{customerId}/role`
- Auth: OpenID Connect (`https://auth.rapidata.ai/.well-known/openid-configuration`, scopes: `openid`, `profile`, `email`, `offline_access`, `api`)

Responds with 404 when the customer is not a member and 409 when changing the role of the
 organization's last owner.

## Path parameters

- `organizationId` string, required
- `customerId` string, uuid, required

## Request body

- ChangeOrgMemberRoleEndpointInput
  - `role` 'Owner' | 'Admin' | 'Editor' | 'Viewer', required

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthenticated
- `403`: Forbidden

## Changes

- **2026-09-04** `9da534659e5f`: 1 info
  - the security scope `api` was added to the endpoint's security scheme `OpenIdConnect`

[Operation history](https://skmtc.dev/rapidata/apis/rapidata-api/changes/organizations/:organizationId/members/:customerId/role/put.md)

---

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