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

Method put

apps/trigger/views/trigger.py:367–371  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str, source_type: str, source_id: str, trigger_id: str)

Source from the content-addressed store, hash-verified

365 get_operation_object=lambda r, k: get_trigger_operation_object(k.get('trigger_id')),
366 )
367 def put(self, request: Request, workspace_id: str, source_type: str, source_id: str, trigger_id: str):
368 return result.success(TaskSourceTriggerOperateSerializer(
369 data={'trigger_id': trigger_id, 'workspace_id': workspace_id,
370 'source_id': source_id, 'source_type': source_type}
371 ).edit(request.data))
372
373 @extend_schema(
374 methods=['DELETE'],

Callers

nothing calls this directly

Calls 3

successMethod · 0.45
editMethod · 0.45

Tested by

no test coverage detected