MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / post

Method post

apps/knowledge/views/document.py:78–83  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str, knowledge_id: str)

Source from the content-addressed store, hash-verified

76 ),
77 )
78 def post(self, request: Request, workspace_id: str, knowledge_id: str):
79 return result.success(
80 DocumentSerializers.Create(
81 data={"workspace_id": workspace_id, "knowledge_id": knowledge_id, "user_id": request.user.id},
82 ).save(request.data)
83 )
84
85 @extend_schema(
86 methods=["GET"],

Callers

nothing calls this directly

Calls 2

successMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected