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"
}更新聯絡人
僅更新支援的聯絡人欄位。必須至少提供一個欄位,且原始 JSON 主體上限為 1 MiB。每個回應都包含 Brightalk-Version 與 X-Request-Id;受到速率限制的回應還會提供實際套用之配額群組的計數器。
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"
}授權
Use a server-side Brightalk API key in the Authorization header.
標頭
選擇以日期為基礎的 API 版本。省略時會使用組織固定的預設版本。
"2026-07-16"由呼叫端產生且符合 [A-Za-z0-9._:-]{1,64} 的關聯值。無效值會被取代。
64^[A-Za-z0-9._:-]{1,64}$路徑參數
不透明的聯絡人識別碼。 不透明的資源識別碼。
1 - 255"con_demo_001"
主體
JSON request body. The raw encoded body is limited to 1 MiB and unknown fields are rejected.
會移除前後空白;剩餘值必須包含 1–255 個字元。
^\s*\S(?:[\s\S]{0,253}\S)?\s*$"Example Customer"
嚴格的 E.164 電話號碼。
^\+[1-9]\d{7,14}$"+12025550123"
320"customer@example.com"
會移除前後空白;剩餘值最多可包含 255 個字元。
^\s*(?:\S(?:[\s\S]{0,253}\S)?)?\s*$"Example Co."
會移除前後空白;剩餘值最多可包含 255 個字元。
^\s*(?:\S(?:[\s\S]{0,253}\S)?)?\s*$"Operations Manager"
會移除前後空白;剩餘值最多可包含 255 個字元。
^\s*(?:\S(?:[\s\S]{0,253}\S)?)?\s*$"Taipei"
會移除前後空白;剩餘值最多可包含 255 個字元。
^\s*(?:\S(?:[\s\S]{0,253}\S)?)?\s*$"TW"
回應
已更新聯絡人。
不透明的資源識別碼。
1 - 255"con_demo_001"
由呼叫端管理的外部識別。
"customer-8421"
外部識別命名空間。
"public_api"
"Example Customer"
^\+[1-9]\d{7,14}$"+12025550123"
聯絡人的電子郵件地址。
"customer@example.com"
聯絡人的公司。
"Example Co."
聯絡人的職務。
"Operations Manager"
聯絡人的城市。
"Taipei"
聯絡人的國家或地區。
"TW"
聯絡人的建立時間。
"2026-07-20T01:00:00Z"
聯絡人上次更新的時間。
"2026-07-20T01:00:00Z"