How to put data into bubble database using data api

I’m trying to overwrite a field in one of my tables using python pycurl. Can someone show me an example of how to put data using pycurl? I’m able to get the data and parse it in my python script.

sample code:
c = pycurl.Curl()
c.setopt(c.URL, ‘https://smartparkingapplications.bubbleapps.io/version-test/api/1.1/obj/User/1583800112720x173266947140977800/put’)

                        c.setopt(c.UPLOAD, 1)
                        data = json.dumps(test2)
                        # READDATA requires an IO-like object; a string is not accepted
                        # encode() is necessary for Python 3
                        #buffer = BytesIO(data.encode('utf-8'))
                        c.setopt(c.READDATA, buffer)

                        c.perform()
                        c.close()

Error received: “Sorry, we ran into a temporary bug and can’t complete your request. We’ll fix it as soon as we can; please try again in a bit!”

Where are you trying to run that py?
Nowhere within Bubble accepts that as far as I know.

Presumably the python code would be calling Bubble’s REST API. But it’s all Greek to me too…

And I’ve done a touch of Python, but only to write weird novels with GPT-2 in google colab…

Help us out, Original Poster…