POST
/
update_instance_data
import requests

url = "https://api.berri.ai/update_instance_data"

new_data="""
We moved to Bankless.com
Upgrade to paid
Rise of the Cryptodollar
How stablecoin interest rates will rise and fall in the DeFi economy and why it matters
Ryan Sean Adams
Feb 13, 2020
Level up your open finance game three times a week. Subscribe to the Bankless program below.
Upgrade to paid
Dear Crypto Natives,
You can get a Dai savings account at 7.5% interest—but will this rate go up or down?
For those who prefer bank stablecoins you can get USDC at 
"""

params = {
  "user_email": "ishaan@berri.ai",
  "instance_id": "87d22c9d-72c9-4f3f-b61c-6a07bae0ca99"
}


response = requests.post(url, params=params, data={'data': new_data})

print(response.text)

{
  "message": "<string>",
  "status": "<string>"
}

Query

user_email
string
required

The email address you are using on your berri.ai account Example: ishaan@berri.ai

instance_id
string
required

The instance you want to add data to, create_app returns an instance_id that you should use here

data
string
required

The text data you want to add to your instance Example

data = 'We moved to Bankless.com How stablecoin interest rates will rise and fall in the DeFi economy and why it matters Ryan Sean Adams Feb 13, 2020 Level up your open finance game three times a week. Subscribe to the Bankless program below.'

Response

message
string

returns Data updated successfully on successful upload

status
string

Returns success on successful update

Example Replit with code to create and update instance data: https://replit.com/join/uzmafkgeae-ishaan-jaff