Set or clear image room tags
Access: Bearer token required. Also requires: Caller must be the listing's landlordId.
Sets or clears the room tag (metadata.tag, e.g. "Kitchen", "Bedroom") on images already stored on the listing. Only the listing's landlordId may call it. Each entry names an image by its exact stored URL. A tag is trimmed, inner whitespace is collapsed and it is capped at 30 characters; an empty string or null removes the tag. Images not listed keep their tag, unknown URLs are ignored, but at least one URL must belong to the listing.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
id*stringObjectId of the property.
application/json- body
images*array<>1-50 entries of { url: string, tag: string | null }. Both keys are required in each entry; tag is at most 30 characters, and "" or null clears the tag.
1 <= items <= 50The property document with updated image tags.
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X PATCH 'http://localhost:4000/api/v1/property/string/images/tags' \ -H 'Content-Type: application/json' \ -d '{ "images": [ { "url": "https://res.cloudinary.com/homelinkhub/image/upload/v1764061200/homelinkhub/media/lekki-3bed-living.jpg", "tag": "Living Room" }, { "url": "https://res.cloudinary.com/homelinkhub/image/upload/v1764061200/homelinkhub/media/lekki-3bed-kitchen.jpg", "tag": null } ]}'{ "status": 200, "success": true, "message": "Image tags updated 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" } ], "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 }}
HomeLink Hub