POST
/
api
/
v1
/
users
/
profile
/
{user_id}
Python
# To use the Python SDK, install the package:
# pip install memobase

from memobase import MemoBaseClient

client = MemoBaseClient(project_url='PROJECT_URL', api_key='PROJECT_TOKEN')

user = client.get_user('user_id')
user.add_profile(content="I am a software engineer", topic="career", sub_topic="job")
{
  "data": {
    "id": "<string>"
  },
  "errno": 0,
  "errmsg": ""
}

This endpoint allows you to add new profile entries to a user’s long-term memory.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The ID of the user

Body

application/json

The content of the profile to add

Response

200
application/json

Successful Response

The response is of type object.