POST
/
api
/
v1
/
users
/
buffer
/
{user_id}
/
{buffer_type}

Flush the memory buffer for a specific user and buffer type. This endpoint ensures all pending memory operations are processed and committed to long-term storage.

Path Parameters

user_id
string
required

The ID of the user

buffer_type
enum<string>
required

The type of buffer to flush

Available options:
chat,
doc,
image,
code,
transcript

Response

200 - application/json
data
object | null

Response data payload

errmsg
string
default:

Error message, empty when success

errno
enum<integer>

Error code, 0 means success

Available options:
0,
400,
401,
403,
404,
405,
409,
422,
500,
501,
502,
503,
504