Skip to main content
PUT
/
api
/
v1
/
orgs
/
organizations
/
{org_id}
/
members
/
Python
import requests

url = "https://api.mem0.ai/api/v1/orgs/organizations/{org_id}/members/"

payload = {
    "email": "<string>",
    "role": "<string>"
}
headers = {
    "Authorization": "Token <api-key>",
    "Content-Type": "application/json"
}

response = requests.request("PUT", url, json=payload, headers=headers)

print(response.text)
{
  "message": "User role updated successfully"
}

Authorizations

Authorization
string
header
required

API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'

Path Parameters

org_id
string
required

Unique identifier of the organization.

Body

application/json
email
string
required

Email of the member whose role is to be updated.

role
string
required

New role of the member in the organization

Response

User role updated successfully.

message
string
Example:

"User role updated successfully"