Skip to content

Update Member Role​

PUT
/bridge-payment/organizations/{id}/members/{memberId}

Update a member's role in the organization. Only the organization owner can update roles. Cannot change the owner's role or your own role. Role must be admin, billing, or member.

Authorizations​

SessionAuth

Session ID from Flowless authentication

TypeAPI Key (header: X-Session-ID)

Parameters​

Path Parameters

id*

Organization ID

Typestring
Required
Example"org_abc123"
memberId*

Member ID (organization_users.id)

Typestring
Required
Example"orguser_789"

Request Body​

application/json
JSON
{
"role": "admin"
}

Responses​

Member role updated successfully

application/json
JSON
{
"success": true,
"data": {
"id": "orguser_789",
"organization_id": "org_abc123",
"user_id": "user_new123",
"role": "admin",
"created_at": "string",
"updated_at": "string"
},
"message": "Member role updated successfully"
}

Playground​

Server
Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI