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

# algolia agentstudio agents update

> Update an Agent Studio agent.

```txt Usage theme={"system"}
algolia agentstudio agents update <agent-id> [flags]
```

## Examples

Update the agent name:

```sh icon=square-terminal theme={"system"}
algolia agentstudio agents update 11111111-1111-4111-8111-111111111111 --name "renamed-bot"
```

Update from a JSON object:

```sh icon=square-terminal theme={"system"}
algolia agentstudio agents update 11111111-1111-4111-8111-111111111111 --json '{"name":"renamed-bot","instructions":"Be brief."}'
```

## Flags

**--instructions**

Agent prompt

**--json**

Agent JSON patch object

**--name**

Agent name

## Output formatting flags

**--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.

**-o, --output**

Output format. One of: (json, jsonl, ndjson, jsonpath, jsonpath-as-json, jsonpath-file).

**--template**

Template string or path to a template file to use when --output=jsonpath, --output=jsonpath-file.
