Save Chat Message
Changed onSave a chosen chat message (or Q+A pair) permanently to the project or quote it came from — a plain COPY, so the JEEVY-1718 30-day purge (keyed on thread/conversation identity, never on this row) can't touch it (JEEVY-1741).
v1 is estimator/project_manager only (Joseph's decision) — a shop thread has no single natural project/quote target. Thread ownership is verified for free by going through the exact same resolvers every other route in this file uses (_resolve_agent_entity + _deliverable_agent_thread_id) — never a client-supplied thread id, so a user can only ever save from their own thread on this quote/project. The request body carries NO message text (see SaveMessageRequest's docstring) — the real text is read back from the LangGraph checkpoint by message_id, never trusted from the client.
Write-gated: a view-only user must not be able to publish to the team-shared saved list, even though they can't delete their own entry either (DELETE already requires write via require_project_write_permission / require_quoting_write_permission). Checked inline — not a fixed FastAPI dependency — because system is a runtime path param here, not baked into the route like the project/quote-scoped GET/DELETE. (JEEVY-1741)
Request
- Base URLhttps://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
- Authnone declared
Path parameters
Request body
Body of POST /agents/{system}/{entity_id}/saved-messages.
Response
Successful Response
One row of saved_chat_messages, as returned to the client.
Changes
- info
endpoint added
- info