PATCH
/
api
/
v1
/
orgs
/
organizations
/
{org_id}
/
projects
/
{project_id}
# To use the Python SDK, install the package:
# pip install mem0ai

from mem0 import MemoryClient

client = MemoryClient(api_key="your_api_key")

new_categories = [
    {"cooking": "For users interested in cooking and culinary experiences"},
    {"fitness": "Includes content related to fitness and workouts"}
]

response = client.update_project(custom_categories=new_categories)
print(response)
{
  "message": "Project 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

project_id
string
required

Unique identifier of the project to be updated

Body

application/json
name
string

Name of the project

description
string

Description of the project

custom_instructions
string[]

Custom instructions for memory processing in this project

custom_categories
object[]

List of custom categories to be used for memory categorization

Response

200
application/json
Project updated successfully
message
string
Example:

"Project updated successfully"