> ## 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 providers update

> Update an Agent Studio LLM provider.

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

## Examples

Rename a provider:

```sh icon=square-terminal theme={"system"}
algolia agentstudio providers update 22222222-2222-4222-8222-222222222222 --name "anthropic-prod"
```

Rotate the API key:

```sh icon=square-terminal theme={"system"}
algolia agentstudio providers update 22222222-2222-4222-8222-222222222222 --json '{"input":{"apiKey":"<api-key>"}}'
```

## Flags

**--json**

Provider JSON patch object (name and/or input)

**--name**

Provider display 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.
