Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Organizations

Update a member's role (owner/admin)

Command line

The orl CLI wraps this endpoint:

orl organizations member-role update <user-id> --role <role>
PATCH
/v1/orgs/{orgId}/members/{userId}
AuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

In: header

Path Parameters

orgId*string
userId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/orgs/string/members/string" \  -H "Content-Type: application/json" \  -d '{    "role": "owner"  }'
{  "userId": "string",  "role": "string",  "email": "string",  "fullName": "string",  "avatarUrl": "string",  "invitedAt": "string",  "joinedAt": "string",  "status": "active"}