Hi,
I’m testing the script of Airtable and I’m facing the issue with POST request creation.
First, I tested my request with Postman and it worked fine.
Then I ran the same request with Airtable script and I got failed.
let response = await fetch('https://gorest.co.in/public/v2/users', {
method: 'POST',
body: {
"name": "Tenali Ramakrishna",
"gender": "male",
"email": "tenali.ramakrishna2@15ce.com",
"status": "active"
},
headers: {
'Content-Type': 'application/json',
"Accept": "application/json",
"Authorization": "Bearer 84799e2274fa6626356d26d9364fde5320a5d3f1703b6d33a525a1585cbbce65",
},
});
console.log(await response.json());
Could anyone help me on this? Thank you!