Update a cached response
Changed onUpdate the expiry date of a cached response identified by its public cache key. An entry that has already expired returns 404 and cannot be revived.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/caches/{cache_key}/
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
Organization-scoped cache key returned by the cache list endpoint.
Request body
Response
Updated cached response.
Example response
{
"id": 123,
"cache_key": "cached_response_550e8400-e29b-41d4_abc123def456",
"prompt_content": "What is the capital of France?",
"response_content": "The capital of France is Paris.",
"request_content": "What is the capital of France?",
"prompt_messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
],
"full_response": {
"choices": [
{
"message": {
"role": "assistant",
"content": "The capital of France is Paris."
}
}
]
},
"hit_count": 42,
"response_time": 0.5,
"timestamp": "2026-04-10T12:00:00Z",
"updated_at": "2026-04-10T12:00:00Z",
"expiry_date": "2026-05-10T12:00:00Z"
}Changes
- breaking
request body became required
- breaking
the response property
became nullable for the status - breaking
the
response's property format changed fromdoubleto no format for status - info
api operation id
caches_api_caches_partial_update_2removed and replaced withapi_caches_partial_update_2 - info
the endpoint scheme security
DashboardJwtwas added to the API - info
api tag
Cachesadded - info
api tag
cachesremoved - info
the request property
became nullable
- breaking
- info
removed the non-success response with the status
- info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info