Skip to content

Update contact

Contacts API · contacts.update

URL · Fields · Example · Response · Try it

URL and authentication

POST https://YOUR-BACKEND/api/automation/v1/execute

Send Authorization: Bearer <connection key>, Accept: application/json and Content-Type: application/json. Create a connection.

This operation requires write access and CRM permission edit_contacts. The gateway invokes PUT /api/v1/app/lead-contacts/{id} internally. Use the POST URL above with your automation key, including for read and delete operations.

Request parameters

KeyTypeRequirement
operationstringRequired; exactly contacts.update
parameters.idintegerRequired; positive record ID from your CRM
dataobjectOptional; see fields below
idempotency_keystringRequired; 8–100 characters. Unique per action; keep unchanged for identical retries.

Fields

Supply only the fields to change. The resulting contact must still have non-empty first and last names. Email uniqueness is checked if the email changes.

Fields below belong inside data. Dot paths describe nested objects; * means each array item. nullable permits null and sometimes validates a supplied field. in: lists allowed values; min: and max: limit the value, length or item count. exists: and exists_in_company: require a valid record ID. Conditional rules such as required_if and required_with refer to other fields in the same payload. Use YYYY-MM-DD for date-only values and timestamps with timezone offsets for follow-ups.

FieldTypeRequirementFormat / validation
first_namestringOptionalsometimes; string; min:1; max:255
last_namestringOptionalsometimes; string; min:1; max:255
emailstringOptionalsometimes; email — Must be available and unique within your company if changed.
primary_phonestringOptionalsometimes; string; max:255
secondary_phonestringOptionalnullable; string; max:255
country_idintegerOptionalnullable; integer; exists:countries,id
preferred_languagesarrayOptionalnullable; array
preferred_languages.*integerOptionalnullable; integer; exists:language_settings,id
communication_preferencesarrayOptionalnullable; array
communication_preferences.*stringOptionalnullable; in:email,whatsapp,phone,text,sms
date_of_birthstringOptionalnullable; date
genderstringOptionalnullable; in:male,female
marital_statusstringOptionalnullable; in:single,married,engaged,divorced,widowed,separated,other
occupationstringOptionalnullable; string; max:255
company_namestringOptionalnullable; string; max:255
addressstringOptionalnullable; string
internal_notesstringOptionalnullable; string
assigned_tointegerOptionalsometimes; integer; integer; exists_in_company:users
source_idintegerOptionalnullable; integer; exists_in_company:lead_sources
contact_stage_idintegerOptionalnullable; integer; exists_in_company:contact_stages
prioritystringOptionalnullable; in:high,medium,low
custom_fields_dataobjectOptionalarray — Object keyed by field_<id>. Required fields depend on your installation. URL fields require a URL; percentages are 0–100. File custom fields cannot be uploaded through this JSON API.

Example request

Replace the example IDs and values with records in your installation. Supply any additional custom fields required by your company.

{
  "operation": "contacts.update",
  "parameters": {
    "id": 1
  },
  "data": {
    "first_name": "Example",
    "last_name": "Contact"
  },
  "idempotency_key": "example-event-12345"
}

Response

Returns the updated contact in data. Use data.id for subsequent requests. Related fields depend on the resource and your permissions.

The gateway preserves the underlying HTTP status and JSON body. Successful requests return HTTP 200. A response may also include localized message fields.

Illustrative response excerpt (additional fields may be returned):

{
  "status": "success",
  "data": {
    "id": 456,
    "first_name": "Example",
    "last_name": "Contact",
    "email": "contact@example.com"
  }
}

Errors

HTTP statusMeaning
400A CRM business rule rejected the action.
401Missing, invalid, expired or revoked connection key.
403Connection access or CRM permissions do not allow this action.
404Operation or record unavailable.
409This idempotency key was already used with a different request.
413Request or result exceeds its size limit; reduce payload or page size.
422Missing or invalid fields, or a CRM business rule rejected the operation.
429Rate limit exceeded; wait before retrying.
500The server could not complete the operation.

Validation failures may return message / errors, or an error string with an optional fields array. The tester shows the actual HTTP status and full body. Read about limits and retries.

Try it

Brixit API v1

Try this request

contacts.update

Requests run from your browser to your installation. Enter the backend URL shown in Brixit. Your connection key stays in this component’s memory and is cleared when you leave this page.

CRM permission: edit_contacts. Underlying route: PUT /api/v1/app/lead-contacts/{id}. Send this operation to POST /execute.

Example IDs are placeholders. Use your own record and lookup IDs. Required custom fields depend on your installation.

POST /api/automation/v1/execute

Accept: application/json
Authorization: Bearer <connection key>
Content-Type: application/json

id must be a positive integer record ID.

Code uses a connection-key variable; your entered key is never included in copied examples.