Method
post
(self, request: Request, workspace_id: str, knowledge_id: str)
Source from the content-addressed store, hash-verified
| 76 | ), |
| 77 | ) |
| 78 | def post(self, request: Request, workspace_id: str, knowledge_id: str): |
| 79 | return result.success( |
| 80 | DocumentSerializers.Create( |
| 81 | data={"workspace_id": workspace_id, "knowledge_id": knowledge_id, "user_id": request.user.id}, |
| 82 | ).save(request.data) |
| 83 | ) |
| 84 | |
| 85 | @extend_schema( |
| 86 | methods=["GET"], |
Callers
nothing calls this directly
Tested by
no test coverage detected