Skip to main content
PATCH
/
v2
/
contact-detail
/
{id}
Update a contact
curl --request PATCH \
  --url https://app.closerx.ai/api/v2/contact-detail/{id}/ \
  --header 'Company-Name: <company-name>' \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '
{
  "first_name": "test123Edit",
  "last_name": "testEdit",
  "contact_number": "8570904784",
  "country_code": "+91",
  "email": "[email protected]",
  "tags": [
    "salesforce",
    "real estate",
    "Test campaign"
  ],
  "company_name": "test",
  "industry": "SaaS"
}
'
{
  "success": true,
  "message": "Success",
  "data": {
    "id": 4465,
    "contact_number": "+918570904784",
    "email": "[email protected]",
    "first_name": "test123edit",
    "last_name": "testedit",
    "company_name": "test",
    "isactive": true,
    "contact_id": "003au000008n5oiAAA",
    "tags": [
      {
        "id": 56,
        "tag_name": "salesforce"
      }
    ],
    "industry": null,
    "custom1": null,
    "custom2": null,
    "custom3": null,
    "custom4": null,
    "address": null
  }
}

Authorizations

api_key
string
header
required

Headers

Company-Name
string
required

The schema name for multi-tenancy (company-wise DB separation)

Path Parameters

id
integer
required

Unique ID of the contact (e.g., 4465)

Body

application/json
first_name
string
required

First name of the contact

Example:

"test123Edit"

last_name
string
required

Last name of the contact

Example:

"testEdit"

contact_number
string
required

Phone number of the contact (without country code)

Example:

"8570904784"

country_code
string
required

Country code for the contact number (in international format)

Example:

"+91"

email
string
required

Email address of the contact

tags
string[]
required

List of tag names associated with the contact

Example:
[
"salesforce",
"real estate",
"Test campaign"
]
company_name
string

Name of the company the contact is associated with

Example:

"test"

industry
string

Industry type for the contact

Example:

"SaaS"

Response

Successfully updated contact details

success
boolean
required

Indicates whether the contact edit operation was successful

Example:

true

message
string
required

A message describing the outcome of the request

Example:

"Success"

data
object
required

The updated contact object