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