---
title: "Update an assistant"
description: "Change the settings you send and keep the others. Switching the knowledge mode keeps the lists of the other modes."
canonical: "https://lookio.app/docs/api/assistants/update-assistant"
updated: "2026-10-17"
---

# Update an assistant

Requires `assistants:write`.

Only the fields you send change. `resource_ids` and `follow_tags` replace the previous lists, and the list of a mode you are not using is kept, so you can switch back later.

The next question uses the new settings.

A `PATCH` is not retried by the CLI after a server error. Read the assistant before you try again.

```http
PATCH https://api.lookio.app/v1/assistants/{assistant_id}
```

## Authorizations

- `Authorization` (bearer, in header, required)

## Path parameters

- `assistant_id` (`string`, required, pattern: `^ast_[abcdefghjkmnpqrstuvwxyz23456789]{12}$`)

## Body

`application/json`, required

- `name` (`string`, length: `1–120 chars`)
- `context` (`string`, length: `≤ 12000 chars`): What the assistant is and who it talks to: its role and its audience.
- `output_guidelines` (`string`, length: `≤ 12000 chars`): How answers are written: length, format, language.
- `resource_ids` (`string[]`, items: `≤ 200 items`): The resources it answers from.
- `follow_tags` (`string[]`, items: `≤ 30 items`): Tags it follows when `knowledge` is `tags`: every resource carrying one, now or later, is used (one `knowledge` mode applies at a time).
- `knowledge` (`enum<string>`, one of: `all, selected, tags`): What the assistant reads: `all` is every resource of the workspace, now and later; `selected` is only `resource_ids`; `tags` is every resource carrying a tag in `follow_tags`, now or later. One mode at a time; the lists of the other modes are kept.

## Response

**200**: Update an assistant

- `data` (`object`, required)
- `data.id` (`string`, required, pattern: `^ast_[abcdefghjkmnpqrstuvwxyz23456789]{12}$`)
- `data.name` (`string`, required)
- `data.context` (`string`, required)
- `data.output_guidelines` (`string`, required)
- `data.resource_ids` (`string[]`, required): Empty when this caller may not see the resource catalogue.
- `data.follow_tags` (`string[]`, required)
- `data.knowledge` (`enum<string>`, required, one of: `all, selected, tags`): What the assistant reads: `all` is every resource of the workspace, now and later; `selected` is only `resource_ids`; `tags` is every resource carrying a tag in `follow_tags`, now or later. One mode at a time; the lists of the other modes are kept.
- `data.created_at` (`string`, required)
- `data.updated_at` (`string`, required)
- `request_id` (`string`, required)

```json
{
  "data": {
    "id": "ast_66xcnwtzj8vt",
    "name": "Support",
    "context": "You are the support assistant of Acme. You answer customers who want a quick, accurate reply.",
    "output_guidelines": "Short answers, in the language of the question.",
    "resource_ids": [
      "res_thk6smb5nvts"
    ],
    "follow_tags": [],
    "knowledge": "selected",
    "created_at": "2026-10-12T09:30:00.000Z",
    "updated_at": "2026-10-12T09:30:00.000Z"
  },
  "request_id": "req_01K9X7M2Q4"
}
```

**400**: Possible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**401**: Possible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**403**: Possible codes: insufficient_scope, feature_not_available, admin_required, permission_denied

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**404**: Possible codes: resource_not_found

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**413**: Possible codes: request_too_large

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**429**: Possible codes: rate_limited

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**500**: Possible codes: internal_error

- `error` (`object`, required)
- `error.type` (`string`, required)
- `error.code` (`string`, required)
- `error.message` (`string`, required)
- `error.param` (`string`)
- `error.docs_url` (`string`, required)
- `error.action_url` (`string<uri>`)
- `request_id` (`string`, required)

```json
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "docs_url": "<string>",
    "action_url": "<string>"
  },
  "request_id": "<string>"
}
```

**Example request**

```bash
curl --request PATCH \
  --url 'https://api.lookio.app/v1/assistants/<assistant_id>' \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "context": "<string>",
  "output_guidelines": "<string>",
  "resource_ids": [
    "<string>"
  ],
  "follow_tags": [
    "<string>"
  ],
  "knowledge": "all"
}'
```
