Unit listings

Clear a listing custom field

Removes the value one custom field holds on a unit listing. The field definition itself is untouched and stays available on every other listing.

DELETE
https://api.portal.magicdoor.com/company-app/unit-listings/{unitId}/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

unitIdstringrequired

Snowflake id of the unit. A unit listing has no id of its own — it is keyed by the unit it markets, so this is also the listing's id.

example: 1830472847398404098
customFieldIdstringrequired

Snowflake id of the custom field definition, from the list-custom-fields response on this listing.

example: 1830472847398404099

Response

200 · The value was cleared. The response has no body.

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

404 · No listing or no custom field with that id, or one of them belongs to another company.