(self, request: Request, workspace_id: str, knowledge_id: str)
| 267 | |
| 268 | ) |
| 269 | def put(self, request: Request, workspace_id: str, knowledge_id: str): |
| 270 | return result.success(KnowledgeSerializer.SyncWeb( |
| 271 | data={ |
| 272 | 'workspace_id': workspace_id, |
| 273 | 'sync_type': request.query_params.get('sync_type'), |
| 274 | 'knowledge_id': knowledge_id, |
| 275 | 'user_id': str(request.user.id) |
| 276 | } |
| 277 | ).sync()) |
| 278 | |
| 279 | class HitTest(APIView): |
| 280 | authentication_classes = [TokenAuth] |