Publish a draft
Access: Bearer token required. Also requires: Caller must be the listing's landlordId or agentId.
Moves a draft into the verification queue: status goes from draft to pending_verification. This is the only way out of draft. The caller must be the listing's landlordId or agentId. No request body.
Publishing re-arms every completeness rule on the model, so an unfinished draft is rejected with a 400 that lists what is missing. If image geotagging is switched on, the draft's stored photos are checked against its pin at this point.
On success the same side effects as a direct create run: the duplicate-listing check (which may open a flag for admins, silently) and, when an admin has set a default legal partner, automatic assignment to that lawyer with an in-app/socket (notifications:new), push and email notification. The returned document is the one saved before the auto-assignment, so legalStatus still reads pending_verification.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
id*stringObjectId of the draft property. A malformed id produces a 500 with Mongoose's cast error message instead of a 400/404.
The draft is now pending verification.
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X POST 'http://localhost:4000/api/v1/property/string/publish'{ "status": 200, "success": true, "message": "Listing published successfully", "data": { "_id": "665f1c2e9b1d4a0012ab34cd", "landlordId": "664a0b7e2f8c3d0011aa22bb", "agentId": null, "title": "Serviced 3-bedroom apartment in Lekki Phase 1", "description": "Spacious serviced 3-bedroom apartment with a fitted kitchen, 24-hour power and secure parking, five minutes from Admiralty Way.", "type": "APARTMENT", "status": "pending_verification", "location": { "state": "Lagos", "lga": "Eti-Osa", "community": "Lekki Phase 1", "street": "12 Admiralty Way", "nearestLandmark": "Lekki Phase 1 Gate", "coordinates": { "type": "Point", "coordinates": [ 3.4723, 6.4474 ] } }, "details": { "bedrooms": 3, "bathrooms": 3, "squareFeet": 1800, "features": [ "Fitted kitchen", "En-suite rooms" ] }, "pricing": { "rentPrice": 4500000, "salePrice": null, "currency": "NGN", "rentDurationYears": 1 }, "availability": { "availableFrom": "2026-12-01T00:00:00.000Z", "bookingCalendar": [] }, "shortLet": { "minNights": 1, "bookedRanges": [] }, "amenities": [ "wifi", "parking", "Borehole" ], "media": { "images": [ { "url": "https://res.cloudinary.com/homelinkhub/image/upload/v1764061200/homelinkhub/media/lekki-3bed-living.jpg", "metadata": { "address": "12 Admiralty Way, Lekki Phase 1, Lagos", "coordinates": [ 3.4723, 6.4474 ], "gps": [ 3.4725, 6.4476 ], "tag": "Living Room" }, "_id": "665f1c2e9b1d4a0012ab34ce" } ], "videos": [] }, "verification": { "isVerified": false }, "rating": { "averageRating": 0, "reviewCount": 0 }, "landlordKYCStatus": "VERIFIED", "legalStatus": "pending_verification", "activeLegalAssignmentId": null, "deletedAt": null, "createdAt": "2026-11-25T09:30:00.000Z", "updatedAt": "2026-11-25T09:30:00.000Z", "__v": 0 }}
HomeLink Hub