POST
/
api
/
v1
/
project
/
profile_config
# To use the Python SDK, install the package:
# pip install memobase

from memobase import Memobase

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

memobase.update_config('your_profile_config')
{
  "data": {},
  "errno": 0,
  "errmsg": ""
}

Updates the current profile config. Checkout more details in Profile Config.

Below is an example of your profile config:

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.

Authorizations

Authorization
string
header
required

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

Body

application/json

The profile config to update

Response

200
application/json

Successful Response

The response is of type object.