Skip to content

Update bank configuration

PATCH /v1/default/banks/{bank_id}/config

Update configuration overrides for a bank. Only hierarchical fields can be overridden (LLM settings, retention parameters, etc.). Keys can be provided in Python field format (llm_provider) or environment variable format (HINDSIGHT_API_LLM_PROVIDER).

Authentication required — include an Authorization: Bearer hsk_... header. See Authentication for details.

Path Parameters

NameTypeRequiredDescription
bank_idstringYes

Request Body

Content-Type: application/json

json
{
  "updates": {
    "llm_model": "claude-sonnet-4-5",
    "retain_custom_instructions": "Extract technical details carefully",
    "retain_extraction_mode": "verbose"
  }
}

Example Request

bash
curl -X PATCH 'https://api.hindsight.vectorize.io/v1/default/banks/your-bank-id/config' \
  -H 'Authorization: Bearer hsk_your_api_key' \
  -H 'Content-Type: application/json' \
  -d '{
    "updates": {
      "llm_model": "claude-sonnet-4-5",
      "retain_custom_instructions": "Extract technical details carefully",
      "retain_extraction_mode": "verbose"
    }
  }'

Responses

200 — Successful Response

json
{
  "bank_id": "my-bank",
  "config": {
    "llm_model": "gpt-4",
    "llm_provider": "openai",
    "retain_extraction_mode": "verbose"
  },
  "overrides": {
    "llm_model": "gpt-4",
    "retain_extraction_mode": "verbose"
  }
}

422 — Validation Error

json
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "Message",
      "type": "Error Type",
      "input": null,
      "ctx": {},
      "url": "URL"
    }
  ]
}

Source: /v1/default/banks/{bank_id}/config