Method
post
(self, request: Request, workspace_id: str)
Source from the content-addressed store, hash-verified
| 59 | get_operation_object=lambda r, k: r.data.get('name'), |
| 60 | ) |
| 61 | def post(self, request: Request, workspace_id: str): |
| 62 | return result.success(ToolSerializer.Create( |
| 63 | data={'user_id': request.user.id, 'workspace_id': workspace_id} |
| 64 | ).insert({**request.data, 'scope': ToolScope.WORKSPACE})) |
| 65 | |
| 66 | @extend_schema( |
| 67 | methods=['GET'], |
Callers
nothing calls this directly
Tested by
no test coverage detected