Change Organization Member Role
Update the role of an existing organization member.
Change the role assigned to a member of your organization.
Required: Owner role
Authorization
bearerToken
AuthorizationBearer <token>
API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.
In: header
Request Body
application/json
member_id*integer
The organization member record ID.
role*string
New role to assign.
Value in
"owner" | "editor" | "viewer" | "billing"Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/changeOrganizationMemberRole" \ -H "Content-Type: application/json" \ -d '{ "member_id": 42, "role": "viewer" }'{
"type": "RXSUCCESS",
"message": "Role updated successfully"
}{
"type": "RXERROR",
"message": "Invalid params"
}{
"type": "RXERROR",
"message": "Invalid or revoked API token"
}{
"type": "RXERROR",
"message": "You do not have permission to perform this action"
}