curl --request PATCH 'https://api.brightalk.ai/contacts/con_demo_001' \
--header "Authorization: Bearer $BRIGHTALK_API_KEY" \
--header "Brightalk-Version: 2026-07-16" \
--header "Content-Type: application/json" \
--data '{"company":"Example Co."}'const response = await fetch("https://api.brightalk.ai/contacts/con_demo_001", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.BRIGHTALK_API_KEY}`,
"Brightalk-Version": "2026-07-16",
"Content-Type": "application/json",
},
body: JSON.stringify({"company":"Example Co."}),
});
console.log(response.status, await response.json());import os
import requests
response = requests.request(
"PATCH",
"https://api.brightalk.ai/contacts/con_demo_001",
headers={
"Authorization": f"Bearer {os.environ['BRIGHTALK_API_KEY']}",
"Brightalk-Version": "2026-07-16",
"Content-Type": "application/json",
},
json={"company":"Example Co."},
)
print(response.status_code, response.json()){
"id": "con_demo_001",
"external_id": "customer-8421",
"source": "public_api",
"name": "Example Customer",
"phone_number": "+12025550123",
"email": "customer@example.com",
"company": "Example Co.",
"role": "Operations Manager",
"city": "Taipei",
"country": "TW",
"created_at": "2026-07-20T01:00:00Z",
"updated_at": "2026-07-20T01:00:00Z"
}Update a contact
Updates only supported contact fields. At least one field is required and the raw JSON body is limited to 1 MiB. Every response includes Brightalk-Version and X-Request-Id; rate-limited responses also expose the effective bucket counters.
curl --request PATCH 'https://api.brightalk.ai/contacts/con_demo_001' \
--header "Authorization: Bearer $BRIGHTALK_API_KEY" \
--header "Brightalk-Version: 2026-07-16" \
--header "Content-Type: application/json" \
--data '{"company":"Example Co."}'const response = await fetch("https://api.brightalk.ai/contacts/con_demo_001", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.BRIGHTALK_API_KEY}`,
"Brightalk-Version": "2026-07-16",
"Content-Type": "application/json",
},
body: JSON.stringify({"company":"Example Co."}),
});
console.log(response.status, await response.json());import os
import requests
response = requests.request(
"PATCH",
"https://api.brightalk.ai/contacts/con_demo_001",
headers={
"Authorization": f"Bearer {os.environ['BRIGHTALK_API_KEY']}",
"Brightalk-Version": "2026-07-16",
"Content-Type": "application/json",
},
json={"company":"Example Co."},
)
print(response.status_code, response.json()){
"id": "con_demo_001",
"external_id": "customer-8421",
"source": "public_api",
"name": "Example Customer",
"phone_number": "+12025550123",
"email": "customer@example.com",
"company": "Example Co.",
"role": "Operations Manager",
"city": "Taipei",
"country": "TW",
"created_at": "2026-07-20T01:00:00Z",
"updated_at": "2026-07-20T01:00:00Z"
}Authorizations
Use a server-side Brightalk API key in the Authorization header.
Headers
Selects the date-based API version. Omission uses the organization’s pinned default.
"2026-07-16"A caller-generated correlation value matching [A-Za-z0-9._:-]{1,64}. Invalid values are replaced.
64^[A-Za-z0-9._:-]{1,64}$Path Parameters
The opaque Contact identifier. An opaque resource identifier.
1 - 255"con_demo_001"
Body
JSON request body. The raw encoded body is limited to 1 MiB and unknown fields are rejected.
Leading and trailing whitespace is trimmed; the remaining value must contain 1–255 characters.
^\s*\S(?:[\s\S]{0,253}\S)?\s*$"Example Customer"
A strict E.164 phone number.
^\+[1-9]\d{7,14}$"+12025550123"
320"customer@example.com"
Leading and trailing whitespace is trimmed; the remaining value may contain at most 255 characters.
^\s*(?:\S(?:[\s\S]{0,253}\S)?)?\s*$"Example Co."
Leading and trailing whitespace is trimmed; the remaining value may contain at most 255 characters.
^\s*(?:\S(?:[\s\S]{0,253}\S)?)?\s*$"Operations Manager"
Leading and trailing whitespace is trimmed; the remaining value may contain at most 255 characters.
^\s*(?:\S(?:[\s\S]{0,253}\S)?)?\s*$"Taipei"
Leading and trailing whitespace is trimmed; the remaining value may contain at most 255 characters.
^\s*(?:\S(?:[\s\S]{0,253}\S)?)?\s*$"TW"
Response
Contact updated.
An opaque resource identifier.
1 - 255"con_demo_001"
The caller-managed external identity.
"customer-8421"
The external identity namespace.
"public_api"
"Example Customer"
^\+[1-9]\d{7,14}$"+12025550123"
The contact email address.
"customer@example.com"
The contact company.
"Example Co."
The contact role.
"Operations Manager"
The contact city.
"Taipei"
The contact country.
"TW"
When the contact was created.
"2026-07-20T01:00:00Z"
When the contact was last updated.
"2026-07-20T01:00:00Z"