diff --git a/openflexure_microscope/api/v2/views/captures.py b/openflexure_microscope/api/v2/views/captures.py index 0903c35e..e7def4f7 100644 --- a/openflexure_microscope/api/v2/views/captures.py +++ b/openflexure_microscope/api/v2/views/captures.py @@ -198,7 +198,17 @@ class CaptureDownload(View): responses = { 200: {"content": {"image/jpeg": {}}, "description": "Image data in JPEG format"} } - parameters = [CAPTURE_ID_PARAMETER] + parameters = [ + CAPTURE_ID_PARAMETER, + { + "name": "filename", + "in": "path", + "description": "The filename of the downloaded image.", + "required": False, + "schema": {"type": "string"}, + "example": "myimage.jpeg", + } + ] def get(self, id_, filename: Optional[str]): """