Deskhero Developer Hub
Back to deskhero.com
Files

Upload init

Registers one or more files and answers, in the same order as the input, either with a pre-signed URL to PUT the file to (valid for 90 minutes) or with EXIST_SKIP_UPLOAD and the id of an identical file already stored for this tenant, matched on the supplied MD5 or SHA256. Every entry needs a filename, an MD5 and a size, and no file may exceed 120 MB.

POST /api/{tenant:minlength(2)}/v{version:apiVersion}/files/upload_init
Authorisation
No authentication needed

Request arguments

Name Type Source
inputsDTO_file_upload_init[]Body
Request body example

Response

Status
200 (OK)
Type
DTO_file_upload_init_response[]
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_file_upload_init
NameTypeReadOnlyDescription
filenameStringFilename
size_bytesInt64Size bytes
hash_md5StringHash md5
DTO_file_upload_init_response
NameTypeReadOnlyDescription
file_idInt32File id
filenameStringTo idenfity file in a collection of upload requests
md5StringMd5
signed_upload_urlStringSigned upload url
statusENUM file_upload_init_statusStatus
ENUM file_upload_init_status
ValueNameDescription
0UNKNOWNUNKNOWN
1UPLOADUpload
2EXIST_SKIP_UPLOADExist, skip upload

Generated Aug 4, 2026 18:37