Unit listings

Remove an image from a listing

Takes one image out of the listing's gallery.

DELETE
https://api.portal.magicdoor.com/company-app/unit-listings/{unitId}/images/{imageId}

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
imageIdstringrequired

The file to remove, from images[].id on the listing.

example: 1830472847398404102

Response

200 · The image was removed. The response has no body.

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

404 · No listing for that unit, or it belongs to another company.