Create an upload session
Reserves a slot for the tenant's proof-of-insurance document and returns the address to upload it to. Send the returned session id as uploadSessionId when you create the external insurance record; nothing is stored until you do.
Authorization
AuthorizationstringrequiredQuery parameters
leaseIdstringrequiredThe lease the document belongs to. It must belong to the calling company.
Body
application/json
fileNamestringrequiredThe document's file name, 1 to 250 characters.
fileSizeintegerrequiredThe document's size in bytes. Must be at least 1 byte and at most 20 MB (20,971,520 bytes).
contentTypestringrequiredThe document's MIME type, 1 to 200 characters. Must be an image type or application/pdf.
Response
200 · Where and how to upload the document.
sessionIdstringThe session's id. Send it as uploadSessionId when creating the external insurance record.
endpointstringThe URL to send the file to. It is issued by the storage backend, so read it from this response rather than hard-coding it.
methodstringThe HTTP method the upload must use, for example PUT or POST.
fieldsobjectForm fields the storage provider requires alongside the file. Send them exactly as given.
expiresstring · date-timeWhen the session stops accepting the upload.