Admin
Add an entry to the RAG knowledge base
post/api/admin/rag/add
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/admin/rag/add
- AuthHTTP bearer
Request body
Example request
{
"title": "Protein intake guidelines for stage 2",
"content": "During stage 2 recovery, patients should aim for...",
"category": "food_rules",
"tags": "protein,stage2,recovery"
}Response
unknown required
Example response
{
"success": true,
"entry": {
"id": 101,
"category": "nutrition",
"content": "Bariatric patients should prioritize protein at every meal...",
"created_at": "2026-02-19T00:00:00.000Z"
}
}Changes
No recorded changes to this operation across all 34 revisions of this API.