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

# UpdateRecordsRequest

> UpdateRecordsRequest — Kinetica JavaScript API

interface UpdateRecordsRequest \{\
&#x20;[data](#data)?: Record\<string, any>\[];\
&#x20;[expressions](#expressions): string\[];\
&#x20;[new\_values\_maps](#new_values_maps): Record\<string, string | null>\[];\
&#x20;[options](#options)?: Record\<string, string>;\
&#x20;[record\_encoding](#record_encoding)?: string;\
&#x20;[records\_to\_insert](#records_to_insert)?: string\[];\
&#x20;[table\_name](#table_name): string;\
}

<ul>
  <li>Defined in [src/types.ts:5174](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5174)</li>
</ul>

##### Index

### Properties

[data?](#data) [expressions](#expressions) [new\_values\_maps](#new_values_maps) [options?](#options) [record\_encoding?](#record_encoding) [records\_to\_insert?](#records_to_insert) [table\_name](#table_name)&#x20;

## Properties

### `Optional`data

data?: Record\<string, any>\[]

Data records to be processed

<ul>
  <li>Defined in [src/types.ts:5198](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5198)</li>
</ul>

### expressions

expressions: string\[]

A list of the actual predicates, one for each update; format should follow the guidelines `filter`.

<ul>
  <li>Defined in [src/types.ts:5182](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5182)</li>
</ul>

### new\_values\_maps

new\_values\_maps: Record\<string, string | null>\[]

List of new values for the matching records. Each element is a map with (key, value) pairs where the keys are the names of the columns whose values are to be updated; the values are the new values. The number of elements in the list should match the length of `expressions`.

<ul>
  <li>Defined in [src/types.ts:5189](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5189)</li>
</ul>

### `Optional`options

options?: Record\<string, string>

Optional parameters.

<ul>
  <li>Defined in [src/types.ts:5202](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5202)</li>
</ul>

### `Optional`record\_encoding

record\_encoding?: string

Identifies which of `records_to_insert` and `records_to_insert_str` should be used.

<ul>
  <li>Defined in [src/types.ts:5200](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5200)</li>
</ul>

### `Optional`records\_to\_insert

records\_to\_insert?: string\[]

An optional list of new binary-avro encoded records to insert, one for each update. If one of `expressions` does not yield a matching record to be updated, then the corresponding element from this list will be added to the table.

<ul>
  <li>Defined in [src/types.ts:5196](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5196)</li>
</ul>

### table\_name

table\_name: string

Name of table to be updated, in \[schema\_name.]table\_name format, using standard name resolution rules. Must be a currently existing table and not a view.

<ul>
  <li>Defined in [src/types.ts:5180](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L5180)</li>
</ul>


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