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

from memobase import Memobase

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

profile_id = u.add_profile("value", "topic", "sub_topic")
u.update_profile(profile_id, "value2", "topic2", "sub_topic2")
{
  "data": {},
  "errno": 0,
  "errmsg": ""
}

Update a specific profile in 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

profile_id
string
required

The ID of the profile to update

Body

application/json

The content of the profile to update

Response

200
application/json

Successful Response

The response is of type object.