File API
Download a file by path
Request file metadata and a delegated download link for a specified file by path. The download
link should be followed to download the file contents from blob storage. This link is pre-signed and will expire after 30 minutes. Set the include_versions
query parameter to true
to get the complete list of available versions. Set the version
query parameter to request a download link for that specific version of the specified file. If version
is not set, the latest version of the file will be returned.
Request
Responses
200
An object containing file metadata and at least one download link. Optionally, the object will also contain a link for each file version.
400
/file-api/files/invalid-path
Invalid request path.
/file-api/bad-request
Bad request. The server cannot or will not process the request due to a client error.
400
"Invalid Path."
"https://seequent.com/error-codes/file-api/files/invalid-path"
400
"Bad Request."
"https://seequent.com/error-codes/file-api/bad-request"
401
/file-api/auth/missing-token
Unauthorized. The client request has not been completed as the provided credentials are invalid.
/file-api/auth/invalid-token
Forbidden. The client credentials are valid but do not permit access to this resource.
401
"Access Denied."
"https://seequent.com/error-codes/file-api/auth/missing-token"
401
"Access Denied."
"https://seequent.com/error-codes/file-api/auth/invalid-token"
403
/file-api/auth/insufficient-role
Forbidden. The client credentials are valid but the client does not have a sufficient role to access to this resource.
[]
403
"Insufficient Role."
"https://seequent.com/error-codes/file-api/auth/insufficient-role"
404
/file-api/files/not-found
File or version not found.
404
"File Not Found."
"https://seequent.com/error-codes/file-api/files/not-found"
410
/file-api/files/gone
File has been deleted.
410
"The file has been deleted"
"https://seequent.com/error-codes/file-api/files/gone"
422
/file-api/validation
The request was invalid and will not be processed due to a client error.
422
"Validation Error."
"https://seequent.com/error-codes/file-api/validation"
500
/file-api/api-errors
A server error has occurred.
500
"An Error Occurred."
"https://seequent.com/error-codes/file-api/api-errors"
502
/file-api/bad-gateway
Bad gateway. A response required to handle the request is invalid.
502
"Bad Gateway."
"https://seequent.com/error-codes/file-api/bad-gateway"