Skip to Content
HomeLink Hub
Legal Verification

Accept a legal assignment

PATCH
/api/v1/legal/assignments/{assignmentId}/accept

Access: Bearer token required. Roles: LAWYER. Also requires: Caller must be the lawyer on the assignment; Assignment status must be assigned.

The assigned lawyer accepts the work: status moves assigned -> accepted. An assignment_accepted audit entry is written and the user who made the assignment is notified. Note the naming quirk: the notification's event type is lawyer_review_started and its title is "Legal Review Started" even though the review has only been accepted; it is delivered as a stored in-app notification with a notifications:new socket event, a push, and an email with subject "Legal Assignment Accepted". The property's legalStatus is not changed (it is already under_legal_review). No request body. data is the updated assignment in the populated shape of Get assignment.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

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

Path Parameters

assignmentId*string

ObjectId of the legal assignment.

Response Body

Assignment accepted

application/json
  1. response
status*integer
success*boolean
message*string
data*
Example Request
curl -X PATCH 'http://localhost:4000/api/v1/legal/assignments/string/accept'
Example Response
{  "status": 200,  "success": true,  "message": "Assignment accepted successfully",  "data": {    "_id": "6660a7d49b1d4a0012ab3501",    "propertyId": {      "_id": "665f1c2e9b1d4a0012ab34cd",      "title": "3-Bedroom Flat, Lekki Phase 1",      "location": {        "state": "Lagos",        "lga": "Eti-Osa",        "community": "Lekki Phase 1",        "street": "14 Admiralty Way",        "nearestLandmark": "Lekki Phase 1 Gate",        "coordinates": {          "type": "Point",          "coordinates": [            3.4723,            6.4474          ]        }      },      "details": {        "bedrooms": 3,        "bathrooms": 3,        "squareFeet": 1650,        "features": [          "Fitted kitchen"        ]      },      "pricing": {        "rentPrice": 4500000,        "salePrice": null,        "currency": "NGN",        "rentDurationYears": 1      },      "media": {        "images": [          {            "url": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/living-room.jpg",            "metadata": {              "address": "14 Admiralty Way, Lekki Phase 1, Lagos",              "coordinates": [                3.4723,                6.4474              ],              "tag": "Living room"            },            "_id": "6660a7d49b1d4a0012ab3570"          }        ],        "videos": []      },      "verification": {        "isVerified": false      }    },    "lawyerId": {      "_id": "665f1c2e9b1d4a0012ab34c3",      "firstName": "Folake",      "lastName": "Adeyemi",      "avatar": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/folake.jpg"    },    "assignedBy": {      "_id": "665f1c2e9b1d4a0012ab34c1",      "firstName": "Chinedu",      "lastName": "Okafor"    },    "mediaSnapshot": {      "images": [        {          "url": "https://res.cloudinary.com/example/image/upload/v1717500000/homelinkhub/media/living-room.jpg",          "metadata": {            "address": "14 Admiralty Way, Lekki Phase 1, Lagos",            "coordinates": [              3.4723,              6.4474            ]          },          "_id": "6660a7d49b1d4a0012ab3570"        }      ],      "videos": []    },    "status": "accepted",    "dueDate": "2026-06-12T17:00:00.000Z",    "notes": "Please confirm the C of O and survey plan.",    "decision": {      "checklist": []    },    "documentSubmissions": [],    "createdAt": "2026-06-04T09:15:22.481Z",    "updatedAt": "2026-06-05T14:02:10.107Z",    "__v": 0  }}