PATCH
/
leads
/
{id}
Update Lead
curl --request PATCH \
  --url https://api.realtor.dit.myperch.io/v1/leads/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "email": "client1+21135778@example.com",
  "firstName": "Natasha",
  "lastName": "Blick",
  "phone": {
    "number": "2534062008",
    "extension": "841"
  },
  "clientData": {
    "sin": "970886723",
    "prefix": "Mr.",
    "citizenship": "Canadian Citizen",
    "dateOfBirth": "1958-05-03",
    "maritalStatus": "Single",
    "creditScoreEstimation": "789"
  }
}'
{
  "data": {
    "id": "g4XWxPqY",
    "createdAt": "2025-07-22T21:17:14.867Z",
    "updatedAt": "2025-07-22T21:17:14.867Z",
    "deletedAt": null,
    "email": "client1+21135778@example.com",
    "firstName": "Natasha",
    "lastName": "Blick",
    "phone": {
      "number": "2534062008",
      "extension": "841"
    },
    "clientData": {
      "sin": "970886723",
      "prefix": "Mr.",
      "citizenship": "Canadian Citizen",
      "dateOfBirth": "1958-05-03",
      "maritalStatus": "Single",
      "creditScoreEstimation": "789"
    },
    "resourceType": "Firm",
    "resourceId": "j86ZGq9d",
    "referredByReferralCodeId": null,
    "convertedAt": null
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

The id of the record to update.

Body

application/json

The data to update the record with.

The body is of type object.

Response

200
application/json

Successful response

The response is of type object.