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

# algolia objects update

> Update an index with records from a file.

```txt Usage theme={"system"}
algolia objects update <index> -F <file> [--create-if-not-exists] [--wait] [--continue-on-error] [flags]
```

## Examples

Update the "MOVIES" index with records from the "objects.ndjson" file:

```sh icon=square-terminal theme={"system"}
algolia objects update MOVIES -F objects.ndjson
```

Update the "MOVIES" index with records from the "objects.ndjson" file and create the records if they don't exist:

```sh icon=square-terminal theme={"system"}
algolia objects update MOVIES -F objects.ndjson --create-if-not-exists
```

Update the "MOVIES" index with records from the "objects.ndjson" file and wait for the operation to complete:

```sh icon=square-terminal theme={"system"}
algolia objects update MOVIES -F objects.ndjson --wait
```

Update the "MOVIES" index with records from the "objects.ndjson" file and continue updating records even if some are invalid:

```sh icon=square-terminal theme={"system"}
algolia objects update MOVIES -F objects.ndjson --continue-on-error
```

## Flags

<ParamField body="-C, --continue-on-error">
  Continue updating records even if some are invalid.
</ParamField>

<ParamField body="-c, --create-if-not-exists">
  If provided, updating a nonexistent object will create a new one with the objectID and the attributes defined in the file
</ParamField>

<ParamField body="--dry-run">
  Validate and preview the update request without sending it
</ParamField>

<ParamField body="-F, --file">
  Records to update from `file` (use "-" to read from standard input)
</ParamField>

<ParamField body="-w, --wait">
  Wait for the operation to complete before returning
</ParamField>

## Output formatting flags

<ParamField body="--allow-missing-template-keys">
  If true, ignore errors in templates due to missing fields or map keys. This only applies to golang and jsonpath output formats.
</ParamField>

<ParamField body="-o, --output">
  Output format. One of: (json, jsonl, ndjson, jsonpath, jsonpath-as-json, jsonpath-file).
</ParamField>

<ParamField body="--template">
  Template string or path to a template file to use when --output=jsonpath, --output=jsonpath-file.
</ParamField>
