POST
/
db
/
insert
JavaScript
import Worqhat from 'worqhat';

const client = new Worqhat({
  apiKey: 'My API Key',
});

const response = await client.db.insertRecord({
  data: { name: 'John Doe', email: 'john@worqhat.com' },
  table: 'users',
});

console.log(response.data);
{
  "success": true,
  "data": {},
  "message": "Data inserted successfully"
}

Authorizations

Authorization
string
header
required

API key authentication. Format - "Bearer YOUR_API_KEY"

Body

application/json

Response

201
application/json

Data inserted successfully

The response is of type object.