Add a listing to my wishlist
Access: Bearer token required.
Adds a property to the caller's wishlist (stored as an array of property ids on the user). Fails with a 409 if it is already there; use /wishlist/toggle for a call that never conflicts. The property only has to exist: its status is not checked and soft-deleted properties are accepted. data.wishlist is the caller's full list of wishlisted property ids after the change.
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.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
propertyId*stringObjectId of the property.
The property was added.
application/json- response
success*booleanmessage*stringdata*curl -X POST 'http://localhost:4000/api/v1/wishlist/add' \ -H 'Content-Type: application/json' \ -d '{ "propertyId": "665f1c2e9b1d4a0012ab34cd"}'{ "success": true, "message": "Property added to wishlist", "data": { "message": "Property added to wishlist", "wishlist": [ "665f1c2e9b1d4a0012ab34cd" ] }}
HomeLink Hub