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

Method put

apps/tools/views/tool.py:683–688  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str)

Source from the content-addressed store, hash-verified

681 RoleConstants.WORKSPACE_MANAGE.get_workspace_role(), RoleConstants.USER.get_workspace_role()
682 )
683 def put(self, request: Request, workspace_id: str):
684 return result.success(ToolSerializer.UploadSkillFile(data={
685 'workspace_id': workspace_id,
686 'user_id': request.user.id,
687 'file': request.FILES.get('file'),
688 }).upload())
689
690 class DownloadSkillFile(APIView):
691 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 3

successMethod · 0.45
uploadMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected