Leases

Delete a lease

Deletes a lease. This is not the same as ending one: use the end endpoint to close out a lease that really happened, and this only to remove a lease that should never have existed.

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

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 to delete. A Snowflake id, sent as a decimal string.

example: 1830472847398404096

Response

200 · The lease was deleted. No body is returned.

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

404 · No lease matched the id, or it belongs to another company.