Skip to main content

Download file

GET
/files/{id}/download

Contract

Parameter
Value
Sectionfiles
AuthenticationCookieAuth
Consumesnot required
Producesapplication/octet-stream

Parameters

1 parameter

Name
Location
Required
Type
Description
idpathyesintegerFile ID

Responses

4 responses

Status
Description
Type
200
Successful responsefile
400
Invalid file ID or path outside storageobject
401
Unauthorizedobject
404
File not found in the database or on diskobject
  • {}
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }
  • {
      "data": {},
      "error": "<string>"
    }