vibrantium asked
url:
my_reversals:
my_faves:
random_or_faves:
console.log(
vibrantium replied
Sure! It’s super long though
but first of all is the “await axios.request(create)” a correct sentence? I’ve seen people use “await axios.post”
dstala replied
```const options2 = {
method: ‘POST’,
url: ‘http://localhost:8080/api/v1/db/data/noco/p_wiukyreqe052rf/Producer/’,
data: { Name: “x1”, Notes: “x1” },
headers: {
‘xc-auth’: authToken
}
};
axios.request(options2).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});```
dstala replied
you can find ready sample code (mapped for read api) on clicking get api snippet on your right bottom of grid view window
vibrantium replied
Okay! I tried replacing “fields” to “data” instead & while the error message looks a lot shorter now, here’s what it says:
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received an instance of Object
I did use a variable for the url, it works for when I’m querying/getting a row 
vibrantium replied
okay just did! pasted the url instead of using the variable where i stored it. still gave me the same TypeError message
vibrantium replied