curl --request PATCH \
--url https://api.clemta.com/contacts/{contact_id} \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"full_name": "<string>",
"email": "<string>",
"company_id": "<string>",
"status": "<string>",
"description": "<string>",
"cc_emails": [
{}
],
"bcc_emails": [
{}
],
"billing": {
"billing.email": "<string>",
"billing.phone": "<string>",
"billing.phone_code": "<string>",
"billing.iso_code": "<string>",
"billing.country": "<string>",
"billing.address_1": "<string>",
"billing.address_2": "<string>",
"billing.postal_code": "<string>",
"billing.district": "<string>",
"billing.state": "<string>",
"billing.province": "<string>",
"billing.tax_id": "<string>"
}
}
'{
"success": true,
"message": "<string>",
"data": {
"id": "<string>",
"created_at": 123,
"updated_at": 123,
"type": "<string>",
"status": "<string>",
"full_name": "<string>",
"email": "<string>",
"description": "<string>",
"cc_emails": [
{}
],
"bcc_emails": [
{}
],
"billing": {}
}
}Updates an existing contact
curl --request PATCH \
--url https://api.clemta.com/contacts/{contact_id} \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"full_name": "<string>",
"email": "<string>",
"company_id": "<string>",
"status": "<string>",
"description": "<string>",
"cc_emails": [
{}
],
"bcc_emails": [
{}
],
"billing": {
"billing.email": "<string>",
"billing.phone": "<string>",
"billing.phone_code": "<string>",
"billing.iso_code": "<string>",
"billing.country": "<string>",
"billing.address_1": "<string>",
"billing.address_2": "<string>",
"billing.postal_code": "<string>",
"billing.district": "<string>",
"billing.state": "<string>",
"billing.province": "<string>",
"billing.tax_id": "<string>"
}
}
'{
"success": true,
"message": "<string>",
"data": {
"id": "<string>",
"created_at": 123,
"updated_at": 123,
"type": "<string>",
"status": "<string>",
"full_name": "<string>",
"email": "<string>",
"description": "<string>",
"cc_emails": [
{}
],
"bcc_emails": [
{}
],
"billing": {}
}
}X-API-Key: your_api_key_here
customer or vendor.Show Billing Properties
Show Contact Object
customer or vendor).| Code | Description |
|---|---|
| 200 | Contact updated successfully |
| 400 | Invalid request data |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Contact not found |
| 500 | Internal server error |
{
"success": false,
"message": "Contact not found",
"data": null,
"error": {
"code": "NOT_FOUND",
"details": ""
}
}
curl -X PATCH https://api.clemta.com/contacts/64b8f1a2e4b0c8d9f0123456 \
-H "X-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"type": "customer",
"full_name": "John Doe Updated",
"email": "[email protected]",
"company_id": "64b8f1a2e4b0c8d9f0123456",
"description": "Updated primary contact",
"cc_emails": ["[email protected]", "[email protected]"],
"billing": {
"email": "[email protected]",
"phone": "1234567890",
"phone_code": "+1",
"iso_code": "US",
"country": "United States",
"address_1": "123 Main Street",
"address_2": "Suite 200",
"postal_code": "12345",
"state": "CA"
}
}'
{
"success": true,
"message": "Contact updated successfully",
"data": {
"id": "64b8f1a2e4b0c8d9f0123456",
"created_at": 1640995200,
"updated_at": 1641168000,
"type": "customer",
"status": "active",
"full_name": "John Doe Updated",
"email": "[email protected]",
"description": "Updated primary contact",
"cc_emails": ["[email protected]", "[email protected]"],
"bcc_emails": [],
"billing": {
"email": "[email protected]",
"phone": "1234567890",
"phone_code": "+1",
"iso_code": "US",
"country": "United States",
"address_1": "123 Main Street",
"address_2": "Suite 200",
"postal_code": "12345",
"state": "CA"
}
}
}