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

Method put

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

Source from the content-addressed store, hash-verified

539 ),
540 )
541 def put(self, request: Request, workspace_id: str, knowledge_id: str):
542 return result.success(
543 DocumentSerializers.Batch(
544 data={"knowledge_id": knowledge_id, "workspace_id": workspace_id, "user_id": request.user.id}
545 ).batch_save(request.data)
546 )
547
548 class BatchSync(APIView):
549 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 2

successMethod · 0.45
batch_saveMethod · 0.45

Tested by

no test coverage detected