Patch Contact
curl --request PATCH \
--url https://api.example.com/contacts/{contact_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"title": "<string>",
"department": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"company": "<string>",
"company_domain": "<string>",
"source": "<string>",
"notes": "<string>",
"owner_id": "<string>"
}
'import requests
url = "https://api.example.com/contacts/{contact_id}"
payload = {
"account_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"title": "<string>",
"department": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"company": "<string>",
"company_domain": "<string>",
"source": "<string>",
"notes": "<string>",
"owner_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: '<string>',
first_name: '<string>',
last_name: '<string>',
email: '<string>',
title: '<string>',
department: '<string>',
phone: '<string>',
linkedin_url: '<string>',
company: '<string>',
company_domain: '<string>',
source: '<string>',
notes: '<string>',
owner_id: '<string>'
})
};
fetch('https://api.example.com/contacts/{contact_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/contacts/{contact_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'account_id' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'email' => '<string>',
'title' => '<string>',
'department' => '<string>',
'phone' => '<string>',
'linkedin_url' => '<string>',
'company' => '<string>',
'company_domain' => '<string>',
'source' => '<string>',
'notes' => '<string>',
'owner_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/contacts/{contact_id}"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"title\": \"<string>\",\n \"department\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"company\": \"<string>\",\n \"company_domain\": \"<string>\",\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"owner_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/contacts/{contact_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"title\": \"<string>\",\n \"department\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"company\": \"<string>\",\n \"company_domain\": \"<string>\",\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"owner_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/contacts/{contact_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"title\": \"<string>\",\n \"department\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"company\": \"<string>\",\n \"company_domain\": \"<string>\",\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"owner_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Contacts
Update a Contact
PATCH
/
contacts
/
{contact_id}
Patch Contact
curl --request PATCH \
--url https://api.example.com/contacts/{contact_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"account_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"title": "<string>",
"department": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"company": "<string>",
"company_domain": "<string>",
"source": "<string>",
"notes": "<string>",
"owner_id": "<string>"
}
'import requests
url = "https://api.example.com/contacts/{contact_id}"
payload = {
"account_id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "<string>",
"title": "<string>",
"department": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"company": "<string>",
"company_domain": "<string>",
"source": "<string>",
"notes": "<string>",
"owner_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_id: '<string>',
first_name: '<string>',
last_name: '<string>',
email: '<string>',
title: '<string>',
department: '<string>',
phone: '<string>',
linkedin_url: '<string>',
company: '<string>',
company_domain: '<string>',
source: '<string>',
notes: '<string>',
owner_id: '<string>'
})
};
fetch('https://api.example.com/contacts/{contact_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/contacts/{contact_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'account_id' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'email' => '<string>',
'title' => '<string>',
'department' => '<string>',
'phone' => '<string>',
'linkedin_url' => '<string>',
'company' => '<string>',
'company_domain' => '<string>',
'source' => '<string>',
'notes' => '<string>',
'owner_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/contacts/{contact_id}"
payload := strings.NewReader("{\n \"account_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"title\": \"<string>\",\n \"department\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"company\": \"<string>\",\n \"company_domain\": \"<string>\",\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"owner_id\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/contacts/{contact_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"account_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"title\": \"<string>\",\n \"department\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"company\": \"<string>\",\n \"company_domain\": \"<string>\",\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"owner_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/contacts/{contact_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"<string>\",\n \"title\": \"<string>\",\n \"department\": \"<string>\",\n \"phone\": \"<string>\",\n \"linkedin_url\": \"<string>\",\n \"company\": \"<string>\",\n \"company_domain\": \"<string>\",\n \"source\": \"<string>\",\n \"notes\": \"<string>\",\n \"owner_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Partial update — only fields present in the body are changed (
exclude_unset), so omitting a field leaves it untouched, but explicitly passing null clears it. Field semantics are the same as Create, plus department, which isn’t accepted on create — this endpoint and a CSV import are the two ways to set it. account_id, if provided, is validated to belong to the caller’s organization the same way as on create.
This endpoint does not accept stage — use Respond, Disqualify, or Convert to move a contact through the funnel.
Unlike the funnel-action endpoints, this one does not check that
contact_id exists before patching. A PATCH matching no row (nonexistent id, or a different organization’s contact under RLS) is still a “successful” PostgREST update of zero rows, so the response is 200 {} rather than a 404.Auth
Requires a CRM manage scope and an active organization on the token. Any*:manage scope qualifies — in practice contacts:manage, deals:manage, companies:manage, or activities:manage.
Response
The updated contact row (same shape as Create’s response), or{} if contact_id didn’t match a row — see note above.
Errors
| Status | Cause |
|---|---|
400 | Empty body (no fields to update), or no active organization. |
404 | account_id doesn’t resolve to an account in the caller’s organization. |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The contact's id.
Body
application/json
Link to a different account (must belong to the caller's organization), or null to unlink.
Given name.
Family name.
Contact's email address.
Job title.
Department/team name. Not accepted on creation — set it via PATCH or by mapping a column to it in a CSV import.
Phone number.
LinkedIn profile URL.
Free-text company name for an unlinked contact.
Company's email domain, used for search/enrichment.
Origin tag for this record.
Free-text notes.
Logto user ID of the owning rep.
Response
Successful Response
The response is of type Response Patch Contact Route Contacts Contact Id Patch · object.