taikutaiku
User GuidePluginsAPI Reference
PUT/v1/sessions/{session_id}/user-kv/{plugin_id}/{key}

Available only when the server is built with the postgres feature.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

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

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."
"Session not found."
"Database error."
"Database not available."