Using Javascript to Manipulate Records Without Tadabase REST API

This method will expose your API credentials, which we highly recommend not doing and recommend looking into our Tadabase Rest API.

  • Not yet re-checked
  • Classic builder

Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

You can use this example code snippet to create a new record. You must be sure to update all the field_id’s and API credentials.

Text
var form = new FormData();

form.append("field_35", "From API");
form.append("field_36", "Test 1");

var settings = {
    "url": "https://api.tadabase.io/api/v1/data-tables/eykNOvrDY3/records",
    "method": "POST",
    "timeout": 0,
    "headers": {
        "X-Tadabase-App-id": "YOUR_APP_ID",
        "X-Tadabase-App-Key": "YOUR_APP_KEY",
        "X-Tadabase-App-Secret": "YOUR_APP_SECRET",
    },
    "processData": false,
    "mimeType": "multipart/form-data",
    "contentType": false,
    "data": form
};
$.ajax(settings).done(function(response) {
    console.log(response);
});
Screenshot for “Using Javascript to Manipulate Records Without Tadabase REST API”

Original Community Post:

Adding and removing from a database using javascript - Community Discussions / How Do I - Tadabase Community

Was this page helpful?

Something wrong or missing on this page? Tell us.