PUT
/v1/sessions/{session_id}/user-kv/{plugin_id}/{key}Account-owned route. Requires account authentication via the taiku_session browser cookie, Authorization: Bearer <api_key>, or X-Taiku-Token: <api_key>, and the authenticated account must own the session.
taiku_session<token>
Authenticated browser session cookie for account-owned routes.
In: cookie
Path Parameters
session_id*string
Current session identifier.
plugin_id*string
Plugin identifier.
key*string
KV entry key.
Request Body
application/json
KV value payload.
TypeScript Definitions
Use the request body type in TypeScript.
value*unknown
Response Body
application/json
text/plain
text/plain
text/plain
text/plain
text/plain
text/plain
curl -X PUT "/api/v1/sessions/string/user-kv/string/string" \ -H "Content-Type: application/json" \ -d '{ "value": null }'{
"ok": true
}"No authenticated user or invalid user ID.""missing authentication""Not the session owner""Session not found.""Database error.""Database not available"