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

Method put

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

Source from the content-addressed store, hash-verified

267
268 )
269 def put(self, request: Request, workspace_id: str, knowledge_id: str):
270 return result.success(KnowledgeSerializer.SyncWeb(
271 data={
272 'workspace_id': workspace_id,
273 'sync_type': request.query_params.get('sync_type'),
274 'knowledge_id': knowledge_id,
275 'user_id': str(request.user.id)
276 }
277 ).sync())
278
279 class HitTest(APIView):
280 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 3

successMethod · 0.45
syncMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected