Reputation: 1
I want to update the cosmos db through the update api in python using azure functions. How to get the rest api for UPDATE in azure functions using python.
Upvotes: 0
Views: 247
Reputation: 248
Have you installed requests through pip and imported it to your machine?
Assuming i've understood your question right, You should then be able to push the requests through using:
requests.put('https://<your cosmos db link here>', data = {'key':'value'})
Alternately microsoft itself has some helpful documentation here and here
Upvotes: 1