Add images to a listing
Access: Bearer token required. Also requires: Caller must be the listing's landlordId.
Appends photos to media.images. Only the listing's landlordId may call it. Two request forms are accepted: multipart/form-data with files in images (max 20 per request, uploaded to Cloudinary), or application/json with imageUrls, an array of already-hosted URLs. Uploaded files win when both are present.
imagesMetadata is matched to the images by index; only address, coordinates, gps and tag are kept from each entry. In multipart it must be a JSON-encoded string.
A listing holds at most 50 images. Images beyond the cap are silently dropped and the call still returns 200, so compare media.images.length in the response with what you sent. Unless the listing is a draft, the new photos are checked against the listing's pin when image geotagging is switched on. Adding images does not change status or trigger re-verification.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
id*stringObjectId of the property.
multipart/form-data- body
images?unknownUp to 20 image files of at most 10 MB each (jpg, jpeg, png, gif). Required unless imageUrls is sent as JSON.
imagesMetadata?array<unknown>One entry per image, matched by index: { address?: string, coordinates?: [longitude, latitude], gps?: [longitude, latitude], tag?: string }. JSON-encoded string in multipart.
imageUrls?array<unknown>JSON-body alternative to file upload: a non-empty array of image URL strings. Ignored when files are uploaded.
The property document with the new images appended.
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X POST 'http://localhost:4000/api/v1/property/string/images' \ -F 'imageUrls=https://res.cloudinary.com/homelinkhub/image/upload/v1764061200/homelinkhub/media/lekki-3bed-kitchen.jpg' \ -F 'imagesMetadata={"tag":"Kitchen","gps":[3.4725,6.4476]}'{ "status": 200, "success": true, "message": "Images added 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-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" }, { "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" } ], "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 }}