WixData API to update a collection from Nods JS in local machine

Question:
How to update Wix Collection from Node JS using axiom or fetch from local machine?

Product:
Wix Editor, Wix Studio Editor, Editor X

What are you trying to achieve:
I am trying the update wix collection by using http-functions on Wix and providing request.body an object through nodeJS program in my local machine using fetch or axiom to a url.

What have you already tried:
I have tried to get wix collection item, but not able to update an item.

Additional information:
i have this small function in NodeJS: fetch(url, {
method: “PUT”,
headers: {
“Content-Type”: “application/json”,
},
body: JSON.stringify(requestData),
})
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error(“Error:”, error)); to send to a url, along with requestData. However, it is not accepting the requestData payload. Any help, please get in touch avn.solsys@gmail.com

Read this post…

Take a look here…

…and here…

To be able to use AXIOS…
Install the AXIOS-NPM-Package…

Hi @CODE-NINJA, I have tried all these things, in fact i have been able to retrieve an item from the database. But when i want to update the same database using fetch or axiom from local node js application in my machine and send the data object to http-functions.js to update, it is not taking data object in the payload to update the collection. You try if you are able to update any collection item from data in your machine, and let me know if that works.