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"
}
]
}
}
}Contacts
Update a contact by ID
Updates an existing contact’s information. At least one of name, phone, email, or custom_fields must be provided. User must have ‘contacts’ access role to update contacts.
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
Authentication token required for accessing protected endpoints. The token should be obtained from the main SalesCaptain authentication service.
Path Parameters
Unique identifier for the contact to update
Example:
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
Body
application/json
Unique identifier for the company (required)
Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Updated name of the contact
Example:
"John Smith"
Updated phone number (set to empty string to remove)
Example:
"+14155559999"
Updated email address (set to empty string to remove)
Example:
Custom fields to update
Show child attributes
Show child attributes

