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

Method post

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

Source from the content-addressed store, hash-verified

277 get_operation_object=lambda r, k: r.data.get('name'),
278 )
279 def post(self, request: Request, workspace_id: str, source_type: str, source_id: str):
280 return result.success(TaskSourceTriggerSerializer(data={
281 'workspace_id': workspace_id,
282 'user_id': request.user.id
283 }).insert({**request.data, 'source_id': source_id,
284 'workspace_id': workspace_id,
285 'is_active': True,
286 'source_type': source_type}))
287
288 @extend_schema(
289 methods=['GET'],

Callers

nothing calls this directly

Calls 3

successMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected