For guidance and examples, see [Manage assistants](/guides/build-an-assistant-manage-assistants#add-instructions-to-an-assistant).

```python Python theme={null}
# To use the Python SDK, install the plugin:
# pip install --upgrade pinecone pinecone-plugin-assistant

from pinecone import Pinecone

pc = Pinecone(api_key=YOUR_API_KEY)

assistant = pc.assistant.update_assistant(
    assistant_name="test", 
    instructions="Use American English for spelling and grammar.",
    region="us" # Region to deploy assistant. Options: "us" (default) or "eu".
)
```

```javascript JavaScript theme={null}
import { Pinecone } from '@pinecone-database/pinecone';

const pc = new Pinecone({ apiKey: 'YOUR_API_KEY' });

await pc.updateAssistant('example-assistant', {
  instructions: 'Use American English for spelling and grammar.',
});
```

```bash curl theme={null}
PINECONE_API_KEY="YOUR_API_KEY"
ASSISTANT_NAME="example-assistant"

curl -X PATCH "https://api.pinecone.io/assistant/assistants/$ASSISTANT_NAME" \
  -H "Api-Key: $PINECONE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Pinecone-Api-Version: 2025-04" \
  -d '{
  "instructions": "Use American English for spelling and grammar.",
  "region":"us"
}'
```

`PATCH /assistants/{assistant_name}`

:::code-group
```bash title="cURL"
curl --request PATCH \
  --url https://api.pinecone.io/assistant/assistants/{assistant_name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "instructions": "<string>",
  "metadata": {}
}'
```

```json title="200"
{
  "assistant_name": "<string>",
  "instructions": "<string>",
  "metadata": {}
}
```
:::

## Authorizations

- `Authorization` (header, string, required) — Bearer authentication header of the form `Bearer <token>`.

## Path Parameters

- `assistant_name` (path, string, required) — The name of the assistant to update.

## Body

- `instructions` (body, string) — Description or directive for the assistant to apply to all responses.
- `metadata` (body, object)

## Response

- `200` — Update request successful.
- `400` — Bad Request
- `401` — Unauthorized
- `404` — Assistant not found
- `500` — Internal Server Error

## Related pages

- [Account management](./account-management-index.md)
- [Admin](./admin-2-index.md)
- [Admin](./admin-index.md)
- [APIs](./apis-index.md)
- [Architecture](./architecture-index.md)
- [Assistants](./assistants-index.md)
- [Bring Your Own Cloud](./bring-your-own-cloud-index.md)
- [Build an assistant](./build-an-assistant-index.md)
- [Build an integration](./build-an-integration-index.md)
- [Changelog](./changelog-index.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
