Records

Update an existing record

Changed on

Updates specific attributes of an existing record

patch/v1/records/{record_id}

Request

  • Base URL
    https://app.nex.ai/api/developers
  • Auth
    API key in header Authorization

Path parameters

record_idinteger required

Record ID

Request body

attributesobject

Attributes to update

Example request

{
  "attributes": {
    "job_title": "Senior Engineer",
    "location": {
      "city": "Boston",
      "region": "MA",
      "country": "US"
    },
    "phone_number": {
      "country_code": 1,
      "number": "5551234567"
    }
  }
}

Response

Updated record with all attributes

attributesobject
created_atstring
idstring
object_idstring
typestring
updated_atstring
workspace_idstring

Example response

{
  "id": "32414268188027655",
  "object_id": "32414268188027650",
  "type": "person",
  "workspace_id": "32414268188027645",
  "created_at": "2024-01-15T14:20:00Z",
  "updated_at": "2024-01-21T11:45:00Z",
  "attributes": {
    "name": {
      "first_name": "John",
      "last_name": "Doe"
    },
    "email_addresses": [
      "john@example.com"
    ],
    "job_title": "Senior Engineer",
    "phone_number": {
      "country_code": 1,
      "number": "5551234567"
    },
    "location": {
      "city": "Boston",
      "region": "MA",
      "country": "US"
    }
  }
}

Changes