latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

Cache Settings

Update Cache Settings

Save cache settings to database and initialize cache.

This endpoint:

  1. Encrypts sensitive fields (passwords, etc.)
  2. Saves to LiteLLM_CacheConfig table
  3. Reinitializes cache with new settings
post/cache/settings

Headers

litellm-changed-bystring nullable

The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

Request body

cache_settingsobject required

Cache settings to save

Response

Successful Response

{"stackTrail":"paths:/cache/settings:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}