---
title: "Changes an existing tenantUser's role by calling the REAL tenantUserService.update() — which bumps tokenVersion and publishes `user.state_changed` on the per-user realtime channel. The SDK subscribed to that channel refreshes its tokens, so the new role propagates live (no page reload). Drives the realtime live-role-change Playwright test. POST /account/test/playwright/update-tenant-user-role Headers: x-playwright-api-key: <your-api-key> Body: { tenantUserId, tenantId, role: 'OWNER'|'ADMIN'|'MEMBER', appDomain? } Returns: { tenantUserId, role }"
method: POST
path: "/v1/account/test/playwright/update-tenant-user-role"
tags: ["account"]
---

# Changes an existing tenantUser's role by calling the REAL tenantUserService.update() — which bumps tokenVersion and publishes \`user.state_changed\` on the per-user realtime channel. The SDK subscribed to that channel refreshes its tokens, so the new role propagates live (no page reload). Drives the realtime live-role-change Playwright test. POST /account/test/playwright/update-tenant-user-role Headers: x-playwright-api-key: <your-api-key> Body: { tenantUserId, tenantId, role: 'OWNER'|'ADMIN'|'MEMBER', appDomain? } Returns: { tenantUserId, role }

`POST /v1/account/test/playwright/update-tenant-user-role`

## Request

- Base URL: `https://api.thebridge.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thebridge.dev/v1/account/test/playwright/update-tenant-user-role`
- Auth: none declared

## Request body

- UpdateTenantUserRoleRequestDto

## Response `201`

---

[API](https://skmtc.dev/thebridge/apis/bridge-api.md) · [All operations](https://skmtc.dev/thebridge/apis/bridge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebridge/apis/bridge-api/revisions/290fffcb3d80?raw)
