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

# Update Analyzer

> Change an analyzer

Send any of the create fields (at least one). Changing text fields creates a new version. `name` and `instructions` cannot be empty.

> [!NOTE]
>
> Needs `manage` on the analyzer.

## Request

### Headers

**Authorization** `string` *required*

Bearer token with your API key: `Bearer sk_...`

**Content-Type** `string` *required*

application/json

### Path

**agentId** `string` *required*

Analyzer ID (UUID)

### Body

Same fields as [Create Analyzer](https://docs.60db.ai/api-reference/call-analysis/create-analyzer.md), all optional.

## Response

**200**

```json theme={null}
{
  "success": true,
  "data": {
    "id": "3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
    "name": "Refund policy check",
    "description": "Finds wrong refund answers",
    "instructions": "Flag any call where the agent gives wrong refund information.",
    "knowledge_collection_id": null,
    "knowledge_collection_name": null,
    "key_terms": [
      "refund",
      "RMA"
    ],
    "language": "en",
    "version_no": 1,
    "version_id": "e0f1a2b3-c4d5-4e6f-8a7b-9c0d1e2f3a4b",
    "my_role": "manage",
    "counts": {
      "recordings": 0,
      "analyzed": 0,
      "with_problems": 0,
      "waiting": 0,
      "ready": 0,
      "failed": 0
    },
    "created_at": "2026-11-12T09:00:00.000Z",
    "updated_at": "2026-11-12T09:00:00.000Z"
  }
}
```

## Errors

Errors use `{ "success": false, "message": "...", "code": "..." }`. See the [overview](https://docs.60db.ai/api-reference/call-analysis/overview.md#errors) for the codes every route can return.

### This endpoint

| Status | Code | When |
| - | - | - |
| 400 | `VALIDATION_ERROR` | A field is invalid |
| 404 | `NOT_FOUND` | The analyzer does not exist or is not visible |

## Example

```bash cURL theme={null}
curl -X PUT 'https://api.60db.ai/deep-analytics/analysis-agents/3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f' \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"instructions": "Flag wrong refund information and missing identity checks."}'
```

```javascript JavaScript theme={null}
const res = await fetch('https://api.60db.ai/deep-analytics/analysis-agents/3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f', {
  method: 'PUT',
  headers: {
    Authorization: 'Bearer your-api-key',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "instructions": "Flag wrong refund information and missing identity checks."
  }),
});
const { success, data, message, code } = await res.json();
if (!success) throw new Error(`${code}: ${message}`);
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.