Leases

Remove a file from a lease

Detaches a file from the lease.

DELETE
https://api.portal.magicdoor.com/company-app/leases/{leaseId}/files/{fileAttachmentId}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

leaseIdstringrequired

The lease the file is attached to. A Snowflake id, sent as a decimal string.

example: 1830472847398404096
fileAttachmentIdstringrequired

The attachment to remove. A Snowflake id, sent as a decimal string.

example: 1838475620198404096

Response

200 · The file was detached. No body is returned.

401 · The access token is missing, expired, or not for this company.

404 · No file attachment on this lease matched the id, or it belongs to another company.