Attach a file to a lease
Attaches an already-uploaded file to the lease. Get the uploadSessionId from the upload-session endpoint and upload the bytes there first; this call only records the attachment.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease to attach the file to. A Snowflake id, sent as a decimal string.
Body
application/json
uploadSessionIdstringrequiredThe upload session the file was sent to. A Snowflake id, sent as a decimal string.
descriptionstringNote about the file. 1 to 1000 characters.
shareTypesenum<string>[]Who outside the company portal can see the file. Only tenant, vendor and owner are accepted.
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.