Dec 2025 - New! Caching input tokens unlocks immediate, automatic ~30% credit savings on supported models
cURL
curl --request PUT \ --url http://localhost:3000/api/user/history/{historyId} \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data ' { "favorite": true, "forgotten": true } '
{ "success": true, "message": "History updated!" }
Updates a user’s history record, such as marking it as favorite
JWT token passed in x-access-token header
The unique identifier of the history record to update
Whether to mark the history item as favorite
true
Whether to hide the dialogue from history
History record successfully updated
Whether the operation was successful
Success message
"History updated!"
Was this page helpful?