Upload a lease file (multipart)
Uploads a file straight to the lease in one multipart request. Kept for older integrations; new work should request an upload session and then attach the file by its session id.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease to attach the file to. A Snowflake id, sent as a decimal string.
Body
multipart/form-data
filefilerequiredThe file itself. Must not be empty.
descriptionstringNote about the file.
shareTypesenum<string>[]Who outside the company portal can see the file.
Response
200 · The file attachment that was created.
idstringId of the attachment. Use this to update or remove it. A Snowflake id, sent as a decimal string.
fileNamestringDisplay name of the attachment.
descriptionstringNote about the file.
createdstring · date-timeWhen the file was attached, in the company's timezone.
uploaderNamestringName of whoever uploaded it.
uploaderTypestringWhat kind of user uploaded it, for example PropertyManager.
shareTypesstring[]Who outside the company portal can see it.
relationTypeenum<string>What the file is attached to. Always lease here.
relationIdstringId of the thing it is attached to. A Snowflake id, sent as a decimal string.
fileobjectThe stored file.
fileIdstringdeprecatedUse file.id.
fileUrlstringdeprecatedUse file.secureUrl.raw.
fileThumbUrlstringdeprecatedUse file.secureUrl.variantTemplate.
fileSizeBytesintegerdeprecatedUse file.size.
propertyIdstringdeprecatedUse relationId with relationType.
leaseIdstringdeprecatedUse relationId with relationType.