Leases

Remove a lease custom-field value

Clears this lease's value for one custom field. The field itself stays defined for the company; only the value on this lease goes away.

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

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 clear the value on. A Snowflake id, sent as a decimal string.

example: 1830472847398404096
customFieldIdstringrequired

The custom field to clear. A Snowflake id, sent as a decimal string.

example: 1851019384756201984

Response

200 · The value was removed. No body is returned.

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

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