Leases

Reactivate an ended lease

Reverses ending a lease, clearing the ended flag so the lease is live again. Use it when a lease was ended by mistake.

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

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 ended lease to bring back. A Snowflake id, sent as a decimal string.

example: 1830472847398404096

Response

200 · The lease was reactivated. 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.