> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revoengine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# api.insertDatabaseData()

> Public low-code contract, signatures and examples for api.insertDatabaseData.

## `api.insertDatabaseData()`

Inserts rows. Pass options to control the response: return defaults to true and
onlyKeys returns only primary-key fields. Insert always validates the complete
row required for creation; patch is not an insert option.

Notes:

* Low-code mutations execute atomically in one transaction within the remaining execution memory/time budget. An explicit caller transaction retains its configured timeout.
* REST/public SDK requests retain the 100,000-row limit per request.
* return defaults to true and includes full rows. return: false omits data; onlyKeys
  returns primary keys only. Returning full rows has a higher response-memory cost.
* Unavailable with `readOnly: true` (throws an error).

### Signature

```ts theme={null}
static insertDatabaseData(
      name: string,
      data: LooseObject<any>[],
      options?: DatabaseDataWriteOptions,
    ): Promise<DatabaseDataActionResponse>;
```

### Example

```ts theme={null}
await api.insertDatabaseData('customers', [
  { customerId: 'c-1', name: 'Acme' },
]);
```

See [all api methods](https://docs.revoengine.com/low-code/reference/api.md) or [runtime basics](https://docs.revoengine.com/low-code/overview.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.