Update a cached response
Update the expiry date of a cached response identified by its public cache key.
Authentication
AuthorizationBearer
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
OR
AuthorizationBearer
Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.
Path parameters
cache_key
Organization-scoped cache key returned by the cache list endpoint.
Request
This endpoint expects an object.
expiry_date
New expiry time; null clears it.
Response
Updated cached response.
cache_key
Organization-scoped public cache key.
prompt_content
Prompt text extracted from the cached request.
response_content
Response text extracted from the cached response.
hit_count
Live cache hit count enriched from ClickHouse.
timestamp
When the cache entry was created.
updated_at
When the cache entry was last updated.
id
Internal numeric ID. Present only for dashboard-JWT responses.
request_content
Stored request text preview. The current backend serializer truncates this field to roughly the first 100 characters.
prompt_messages
Original prompt message array stored with the cache entry.
full_response
Full cached provider response object.
response_time
Stored response time for the cached entry, in seconds.
expiry_date
When the cache entry expires. null means no expiry date is set.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error