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

Method put

apps/trigger/views/trigger.py:217–220  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str)

Source from the content-addressed store, hash-verified

215 get_operation_object=lambda r, k: get_trigger_operation_object_batch(r.data.get('id_list')),
216 )
217 def put(self, request: Request, workspace_id: str):
218 return result.success(TriggerSerializer.Batch(
219 data={'workspace_id': workspace_id, 'user_id': request.user.id}
220 ).batch_switch(request.data))
221
222 class Page(APIView):
223 authentication_classes = [TokenAuth]

Callers

nothing calls this directly

Calls 2

batch_switchMethod · 0.80
successMethod · 0.45

Tested by

no test coverage detected