Skip to main content
PUT
/
v1
/
update-contact
/
{contact_id}
curl --request PUT \
  --url https://api.salescaptain.com/v1/update-contact/{contact_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "company_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "John Smith"
}
'
{
  "message": "Contact updated successfully!",
  "contact": {
    "data": {
      "contact_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "name": "John Smith",
      "phone": "+14155559999",
      "email": "[email protected]",
      "created_at": "2024-01-15T10:30:00.000Z",
      "updated_at": "2024-03-13T14:45:00.000Z",
      "custom_fields": [
        {
          "cf_name": "Industry",
          "cf_value": "Healthcare"
        },
        {
          "cf_name": "Budget",
          "cf_value": "75000"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Authentication token required for accessing protected endpoints. The token should be obtained from the main SalesCaptain authentication service.

Path Parameters

contact_id
string<uuid>
required

Unique identifier for the contact to update

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

Body

application/json
company_id
string<uuid>
required

Unique identifier for the company (required)

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

name
string

Updated name of the contact

Example:

"John Smith"

phone
string | null

Updated phone number (set to empty string to remove)

Example:

"+14155559999"

email
string<email> | null

Updated email address (set to empty string to remove)

custom_fields
object[]

Custom fields to update

Response

Contact updated successfully

message
string
Example:

"Contact updated successfully!"

contact
object