Skip to Content
HomeLink Hub
Properties

Update a listing

PATCH
/api/v1/property/{id}

Access: Bearer token required. Also requires: Caller must be the listing's landlordId.

Partial update of a small set of fields. Only the listing's landlordId may call it (an agentId on the listing gets a 403).

Only these values are written, everything else in the body is rejected by validation or ignored: title, description, pricing.rentPrice, pricing.salePrice, pricing.rentDurationYears, availability.availableTo, details.features and amenities. details.features and amenities replace the whole list. Type, location, bedrooms, bathrooms, area, currency, short-let terms, availableFrom, media and status cannot be changed here.

The update does not change status, does not send the listing back through verification and does not re-run the duplicate check. An empty body {} is accepted and returns the unchanged document.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

Access token returned by sign-in. Send it as Authorization: Bearer <token>.

Path Parameters

id*string

ObjectId of the property to update.

Request Body

application/json
  1. body
title?string

New title, 5-200 characters.

Length5 <= length <= 200
description?string

New description, 20-5000 characters.

Length20 <= length <= 5000
pricing?

{ rentPrice?: number >= 0, salePrice?: number >= 0, rentDurationYears?: integer 1-3 }. Only the keys sent are changed. currency cannot be changed.

availability?

{ availableTo?: date }. Sets the date the listing stops being available.

details?

{ features?: string[] }. Replaces the feature list. Bedrooms, bathrooms and area cannot be changed.

amenities?array<>

Replaces the whole amenity list. Up to 40 strings of 1-40 characters.

Itemsitems <= 40

Response Body

The updated property document (landlordId not populated).

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X PATCH 'http://localhost:4000/api/v1/property/string' \  -H 'Content-Type: application/json' \  -d '{  "title": "Serviced 3-bedroom apartment in Lekki Phase 1 (newly renovated)",  "pricing": {    "rentPrice": 4800000,    "rentDurationYears": 2  },  "availability": {    "availableTo": "2027-12-01"  },  "details": {    "features": [      "Fitted kitchen",      "En-suite rooms",      "Inverter"    ]  },  "amenities": [    "wifi",    "parking",    "Borehole",    "gym"  ]}'
Example Response
{  "status": 200,  "success": true,  "message": "Property updated successfully",  "data": {    "_id": "665f1c2e9b1d4a0012ab34cd",    "landlordId": "664a0b7e2f8c3d0011aa22bb",    "agentId": null,    "title": "Serviced 3-bedroom apartment in Lekki Phase 1 (newly renovated)",    "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",        "Inverter"      ]    },    "pricing": {      "rentPrice": 4800000,      "salePrice": null,      "currency": "NGN",      "rentDurationYears": 2    },    "availability": {      "availableFrom": "2026-12-01T00:00:00.000Z",      "availableTo": "2027-12-01T00:00:00.000Z",      "bookingCalendar": []    },    "shortLet": {      "minNights": 1,      "bookedRanges": []    },    "amenities": [      "wifi",      "parking",      "Borehole",      "gym"    ],    "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  }}