(
request: Request,
data: RecordUpdateRequest,
path_params: Dict = Depends(path_params_required),
auth_info: Dict = Depends(auth_info_required),
)
| 128 | responses={422: {"description": "Unprocessable Entity"}}, |
| 129 | ) |
| 130 | async def api_update( |
| 131 | request: Request, |
| 132 | data: RecordUpdateRequest, |
| 133 | path_params: Dict = Depends(path_params_required), |
| 134 | auth_info: Dict = Depends(auth_info_required), |
| 135 | ): |
| 136 | check_path_params( |
| 137 | model_operator=ops, |
| 138 | object_id_required=True, |
| 139 | path_params=path_params, |
| 140 | ) |
| 141 | |
| 142 | entity = await ops.update( |
| 143 | update_dict=data.model_dump(exclude_none=True), |
| 144 | **path_params, |
| 145 | ) |
| 146 | return RecordUpdateResponse( |
| 147 | data=entity.to_response_dict(), |
| 148 | ) |
| 149 | |
| 150 | @router.delete( |
| 151 | path="/collections/{collection_id}/records/{record_id}", |
nothing calls this directly
no test coverage detected