Unit listings

Remove a video from a listing

Takes one video off the listing.

DELETE
https://api.portal.magicdoor.com/company-app/unit-listings/{unitId}/videos/{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 video file to remove, from videos[].id on the listing. The parameter is named imageId because the route was copied from the images one.

example: 1830472847398404109

Response

200 · The video 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.

The path parameter is called `imageId`

This route reuses the images route's parameter name, so the video's file id goes in a segment named imageId. It is the video's id that belongs there, from videos[].id on the listing.