Unit listings

List a listing's custom fields

Returns every custom field the company has defined for unit listings, each carrying the value stored on this listing. Fields with no value here come back without a value.

GET
https://api.portal.magicdoor.com/company-app/unit-listings/{unitId}/custom-fields

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

Response

200 · The company's unit-listing custom fields, with this listing's answers.

customFieldsobject[]

Every custom field the company has defined for this kind of record, each with the value stored for this particular record.

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

Listing fields are separate from unit fields

A company defines custom fields per record type. The ones here apply to unit listings; the ones on the unit endpoints apply to units. Even though both are addressed by the same id, they are different sets.