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

# addRowsToDataset

***

# Function: addRowsToDataset()

```ts theme={null}
function addRowsToDataset(options: object): Promise<void>;
```

Defined in: [src/utils/datasets.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/datasets.ts)

Appends rows to a dataset identified by ID or name.
Delegates to Dataset.addRows().

## Parameters

### options

The options used to locate the dataset and rows to append.

#### datasetId?

`string`

(Optional) The ID of the dataset.

#### datasetName?

`string`

(Optional) The name of the dataset.

#### rows

`Record`\<`string`,
\| `null`
\| `string`
\| `number`
\| `Record`\<`string`, `null` | `string` | `number`>>\[]

The rows to append to the dataset.

## Returns

`Promise`\<`void`>

A promise that resolves when the rows have been appended.
