File API
Upload a file
Request an upload link to store the specified file in blob storage.
If the folders in the file path do not exist, they will be created.
If the file already exists, a new version will be created with the updated file content.
Follow up a successful request with a call to the returned pre-signed upload link.
Specify a binary body containing the file to upload, with the addition of header key-value pair
x-ms-blob-type: BlockBlob
as required by the MS Azure documentation.
The upload link is pre-signed and will expire after 30 minutes.
Including a version_id
parameter allows creating a link to a blob with uncommitted blocks, i.e. the upload has not
been completed properly, or the original pre-signed link has expired.
Uncommitted blocks are valid for up to one week, after which they are automatically deleted.
Request
Responses
200
An object containing a pre-signed upload link. Submit the file content to the link.
400
/file-api/files/no-file-upload-in-progress
Unable to complete partial upload. The upload has already been completed.
/file-api/bad-request
Bad request. The server cannot or will not process the request due to a client error.
400
"No file upload in progress"
"https://seequent.com/error-codes/file-api/files/no-file-upload-in-progress"
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
Unable to complete partial upload. No file exists by this name.
404
"File Not Found."
"https://seequent.com/error-codes/file-api/files/not-found"
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/metadata/store-error
A database error occurred when uploading a file.
/file-api/bad-gateway
Bad gateway. A response required to handle the request is invalid.
502
"File Metadata Storage Operation Failed."
"https://seequent.com/error-codes/file-api/metadata/store-error"
502
"Bad Gateway."
"https://seequent.com/error-codes/file-api/bad-gateway"