Remove Organization Member
Remove a member from your organization.
Remove a member from your organization. The organization creator cannot be removed.
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.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/removeOrganizationMember" \ -H "Content-Type: application/json" \ -d '{ "member_id": 42 }'{
"type": "RXSUCCESS",
"message": "Member removed 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"
}