Skip to Content
HomeLink Hub
Wishlist

Remove a listing from my wishlist

POST
/api/v1/wishlist/remove

Access: Bearer token required.

Removes a property id from the caller's wishlist. Note the method is POST, not DELETE. The property itself is not looked up, so this works for deleted properties too; an id that is not in the list (including a malformed one) is a 404. data.wishlist is the caller's remaining list of property ids.

Send the body as JSON with Content-Type: application/json: a request with no parsed body fails with a 500 instead of the 400 below, because the handler reads req.body unguarded. Success responses from the wishlist endpoints do not use the standard envelope: there is no top-level status field, and the message is repeated inside data. Errors do use the standard error envelope.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Request Body

application/json
  1. body
propertyId*string

ObjectId of the property.

Response Body

The property was removed.

application/json
  1. response
success*boolean
message*string
data*
Example Request
curl -X POST 'http://localhost:4000/api/v1/wishlist/remove' \  -H 'Content-Type: application/json' \  -d '{  "propertyId": "665f1c2e9b1d4a0012ab34cd"}'
Example Response
{  "success": true,  "message": "Property removed from wishlist",  "data": {    "message": "Property removed from wishlist",    "wishlist": []  }}