This endpoint allows you to update the information of an existing contact in your organization’s database. You only need to include the fields you want to modify - any fields not included in the request will remain unchanged.
Use Cases
Update a contact’s phone number, email, or other contact information
Add or modify additional data fields for a contact
Enrich contact records with new information from external sources
Update contact status or notes after interaction
Path Parameters
The unique identifier of the contact you want to update. This is a UUID string that was generated when the contact was created.
Your API key for authentication. You can find this in your dashboard under API settings.
Body Parameters
The updated phone number of the contact in international format (e.g., +12124567890)
The updated full name of the contact
The updated country of the contact
The updated email address of the contact
Updated description or notes about the contact
Updated array of additional data fields for the contact. Note that this will replace the entire additional_data array, not merge with existing values. Show additional_data object
The type of the data field (e.g., “text”, “date”, “number”, “location”)
The name of the data field
The value of the data field
Response
The unique identifier of the updated contact (UUID format)
The timestamp when the contact was originally created (ISO 8601 format)
The updated phone number of the contact
The updated full name of the contact
The updated country of the contact
The updated email of the contact
Updated description or notes about the contact
Updated additional data associated with the contact
The ID of the organization the contact belongs to
Error Codes
400 Bad Request - Invalid input data format
401 Unauthorized - Invalid or missing API key
404 Not Found - Contact not found
409 Conflict - The update would create a duplicate phone number
500 Internal Server Error - Server-side error
Code Examples
cURL Example (Update name and description)
cURL Example (Update multiple fields)
JavaScript Example
Python Example
# Update a contact's name and description
curl -X PATCH "https://api.contactship.ai/v1/contacts/c1a2b3c4-d5e6-f7g8-h9i0-j1k2l3m4n5o6" \
-H "x-api-key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"full_name": "Juan Carlos Pérez",
"description": "Lead converted to customer"
}'
{
"id" : "c1a2b3c4-d5e6-f7g8-h9i0-j1k2l3m4n5o6" ,
"created_at" : "2023-01-01T12:00:00Z" ,
"phone_number" : "+12125678901" ,
"full_name" : "Juan Carlos Pérez" ,
"country" : "México" ,
"email" : "[email protected] " ,
"description" : "Lead converted to customer" ,
"additional_data" : [
{
"type" : "location" ,
"field" : "dirección" ,
"value" : "Av. Reforma 456"
},
{
"type" : "text" ,
"field" : "notas" ,
"value" : "Cliente activo con suscripción premium"
},
{
"type" : "date" ,
"field" : "fecha_conversión" ,
"value" : "2023-03-15"
}
],
"organization_id" : "org123456"
}
Notes and Best Practices
Only include the fields you want to update in the request body
Be careful when updating the additional_data array, as it will replace the entire array rather than merge with existing values
If you’re updating a phone number, ensure it doesn’t conflict with another contact’s phone number
Consider implementing validation checks before submitting updates
Keep track of contact update history in your application if needed for compliance or audit purposes