Reorder listing images
Access: Bearer token required. Also requires: Caller must be the listing's landlordId.
Reorders media.images; index 0 is the listing's cover image. Only the listing's landlordId may call it. imageUrls may list any subset of the listing's current image URLs (typically just the one being promoted): those are placed first in the order given and every other image keeps its relative order after them. URLs that do not belong to the listing are ignored, but at least one must match. Each image keeps its metadata. This endpoint cannot add or remove images. The route has no request validator, and a request with no JSON body at all fails with a 500 rather than the 400 below.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
id*stringObjectId of the property.
application/json- body
imageUrls*array<unknown>Non-empty array of image URL strings already stored on the listing, in the order they should appear at the front of the gallery.
The property document with the new image order.
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X PATCH 'http://localhost:4000/api/v1/property/string/images/reorder' \ -H 'Content-Type: application/json' \ -d '{ "imageUrls": [ "https://res.cloudinary.com/homelinkhub/image/upload/v1764061200/homelinkhub/media/lekki-3bed-kitchen.jpg" ]}'{ "status": 200, "success": true, "message": "Images reordered 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": "listed", "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-kitchen.jpg", "metadata": { "gps": [ 3.4725, 6.4476 ], "tag": "Kitchen" }, "_id": "665f1c2e9b1d4a0012ab34cf" }, { "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": true, "verifiedAt": "2026-11-20T10:15:00.000Z", "verifiedBy": "664e4f1c6d2a7b0015ee66ff" }, "rating": { "averageRating": 0, "reviewCount": 0 }, "landlordKYCStatus": "VERIFIED", "legalStatus": "legally_verified", "activeLegalAssignmentId": null, "deletedAt": null, "createdAt": "2026-11-18T09:30:00.000Z", "updatedAt": "2026-11-25T12:00:00.000Z", "__v": 0 }}