# To use the Python SDK, install the package:# pip install memobasefrom memobase import MemoBaseClientmemobase = MemoBaseClient(project_url='PROJECT_URL', api_key='PROJECT_TOKEN')memobase.update_config('your_profile_config')
Copy
{ "data": {}, "errno": 0, "errmsg": ""}
Project
Update Current Profile Config
POST
/
api
/
v1
/
project
/
profile_config
Python
Copy
# To use the Python SDK, install the package:# pip install memobasefrom memobase import MemoBaseClientmemobase = MemoBaseClient(project_url='PROJECT_URL', api_key='PROJECT_TOKEN')memobase.update_config('your_profile_config')
Copy
{ "data": {}, "errno": 0, "errmsg": ""}
Updates the current profile config. Checkout more details in Profile Config.Below is an example of your profile config:
Copy
overwrite_user_profiles: - topic: "User Basic Information" sub_topics: - name: "Name" - name: "Gender" - name: "Age" - name: "Occupation" description: "For example, a programmer" - name: "City" - topic: "User Pet Information" sub_topics: - name: "Purpose of Pet Ownership" - name: "Attitude Towards Pet Ownership" description: "whether they like to play with the pet" - name: "Pet Medical Habits" description: "Whether they are accustomed to finding medicine themselves"...
Your profile config will not as strong as the config.yaml you used to start Memobase server,
it only affect the profile slots.