Rename a lease file
Changes the display name and description of a file already attached to the lease. It does not replace the file's contents — attach a new file for that.
Authorization
AuthorizationstringrequiredPath parameters
leaseIdstringrequiredThe lease the file is attached to. A Snowflake id, sent as a decimal string.
fileAttachmentIdstringrequiredThe attachment to change, from the list-files response. A Snowflake id, sent as a decimal string.
Body
application/json
fileNamestringrequiredNew display name. 1 to 250 characters.
descriptionstringNew note about the file. 1 to 1000 characters.
Response
200 · The updated attachment.
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.