Copy a lease template
Makes a copy of an existing template — including MagicDoor's built-in ones — under a new name and category, so you can edit it without touching the original.
Authorization
AuthorizationstringrequiredBody
application/json
fromLeaseTemplateIdstringrequiredThe template to copy. A Snowflake id, sent as a decimal string.
leaseTemplateCategoryIdstringrequiredThe category to put the copy in. A Snowflake id, sent as a decimal string.
namestringrequiredName for the copy. 1 to 150 characters.
descriptionstringDescription for the copy. Up to 1000 characters.
Response
200 · The new template.
idstringId of the template. A Snowflake id, sent as a decimal string.
leaseTemplateCategoryIdstringThe category the template sits in. A Snowflake id, sent as a decimal string.
namestringTemplate name.
descriptionstringWhat the template is for.
typeenum<string>What the template is used for: a lease, a leaseRenewal, a lateRentNotice, an eviction notice, a signatureOnly page, or an information sheet.
isDefaultbooleanTrue for MagicDoor's built-in templates, false for ones the company added.
signersLeaseTemplateSigner[]The signer slots defined on the template.
annotationsLeaseDocumentAnnotation[]The boxes placed on the template's PDF.
fileobjectThe template's stored PDF.
fileIdstringdeprecatedUse file.id.
fileNamestringdeprecatedUse file.name.
fileExtensionstringdeprecatedUse file.extension.
signedUrlstringdeprecatedUse file.secureUrl.raw.
contentTypestringdeprecatedUse file.contentType.
fileSizeintegerdeprecatedUse file.size.