Skip to main content
PATCH
https://api.aisa.one/apis/v1
/
apollo
/
contacts
/
{contact_id}
Update a Contact
curl --request PATCH \
  --url https://api.aisa.one/apis/v1/apollo/contacts/{contact_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>",
  "organization_name": "<string>",
  "title": "<string>",
  "account_id": "<string>",
  "email": "<string>",
  "website_url": "<string>",
  "label_names": "<string>",
  "contact_stage_id": "<string>",
  "present_raw_address": "<string>",
  "direct_phone": "<string>",
  "corporate_phone": "<string>",
  "mobile_phone": "<string>",
  "home_phone": "<string>",
  "other_phone": "<string>",
  "typed_custom_fields": {}
}
'
import requests

url = "https://api.aisa.one/apis/v1/apollo/contacts/{contact_id}"

payload = {
"first_name": "<string>",
"last_name": "<string>",
"organization_name": "<string>",
"title": "<string>",
"account_id": "<string>",
"email": "<string>",
"website_url": "<string>",
"label_names": "<string>",
"contact_stage_id": "<string>",
"present_raw_address": "<string>",
"direct_phone": "<string>",
"corporate_phone": "<string>",
"mobile_phone": "<string>",
"home_phone": "<string>",
"other_phone": "<string>",
"typed_custom_fields": {}
}
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({
first_name: '<string>',
last_name: '<string>',
organization_name: '<string>',
title: '<string>',
account_id: '<string>',
email: '<string>',
website_url: '<string>',
label_names: '<string>',
contact_stage_id: '<string>',
present_raw_address: '<string>',
direct_phone: '<string>',
corporate_phone: '<string>',
mobile_phone: '<string>',
home_phone: '<string>',
other_phone: '<string>',
typed_custom_fields: {}
})
};

fetch('https://api.aisa.one/apis/v1/apollo/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.aisa.one/apis/v1/apollo/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([
'first_name' => '<string>',
'last_name' => '<string>',
'organization_name' => '<string>',
'title' => '<string>',
'account_id' => '<string>',
'email' => '<string>',
'website_url' => '<string>',
'label_names' => '<string>',
'contact_stage_id' => '<string>',
'present_raw_address' => '<string>',
'direct_phone' => '<string>',
'corporate_phone' => '<string>',
'mobile_phone' => '<string>',
'home_phone' => '<string>',
'other_phone' => '<string>',
'typed_custom_fields' => [

]
]),
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.aisa.one/apis/v1/apollo/contacts/{contact_id}"

payload := strings.NewReader("{\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"organization_name\": \"<string>\",\n \"title\": \"<string>\",\n \"account_id\": \"<string>\",\n \"email\": \"<string>\",\n \"website_url\": \"<string>\",\n \"label_names\": \"<string>\",\n \"contact_stage_id\": \"<string>\",\n \"present_raw_address\": \"<string>\",\n \"direct_phone\": \"<string>\",\n \"corporate_phone\": \"<string>\",\n \"mobile_phone\": \"<string>\",\n \"home_phone\": \"<string>\",\n \"other_phone\": \"<string>\",\n \"typed_custom_fields\": {}\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.aisa.one/apis/v1/apollo/contacts/{contact_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"organization_name\": \"<string>\",\n \"title\": \"<string>\",\n \"account_id\": \"<string>\",\n \"email\": \"<string>\",\n \"website_url\": \"<string>\",\n \"label_names\": \"<string>\",\n \"contact_stage_id\": \"<string>\",\n \"present_raw_address\": \"<string>\",\n \"direct_phone\": \"<string>\",\n \"corporate_phone\": \"<string>\",\n \"mobile_phone\": \"<string>\",\n \"home_phone\": \"<string>\",\n \"other_phone\": \"<string>\",\n \"typed_custom_fields\": {}\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.aisa.one/apis/v1/apollo/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 \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"organization_name\": \"<string>\",\n \"title\": \"<string>\",\n \"account_id\": \"<string>\",\n \"email\": \"<string>\",\n \"website_url\": \"<string>\",\n \"label_names\": \"<string>\",\n \"contact_stage_id\": \"<string>\",\n \"present_raw_address\": \"<string>\",\n \"direct_phone\": \"<string>\",\n \"corporate_phone\": \"<string>\",\n \"mobile_phone\": \"<string>\",\n \"home_phone\": \"<string>\",\n \"other_phone\": \"<string>\",\n \"typed_custom_fields\": {}\n}"

response = http.request(request)
puts response.read_body
{
  "contact": {},
  "contact.id": "<string>",
  "contact.first_name": "<string>",
  "contact.last_name": "<string>",
  "contact.email": "<string>",
  "contact.title": "<string>",
  "contact.organization_name": "<string>",
  "contact.owner_id": "<string>",
  "contact.account_id": "<string>",
  "contact.present_raw_address": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

contact_id
string
required

Contact ID

Body

application/json
first_name
string

First name

last_name
string

Last name

organization_name
string

Organization name

title
string

Title

account_id
string

Account ID

email
string

Email

website_url
string

Website URL

label_names
string

Labels to set on the contact

contact_stage_id
string

Contact stage ID

present_raw_address
string

Raw address

direct_phone
string

Direct phone

corporate_phone
string

Corporate phone

mobile_phone
string

Mobile phone

home_phone
string

Home phone

other_phone
string

Other phone

typed_custom_fields
object

Typed custom fields object

Response

Successful response

contact
object

Updated contact

contact.id
string

Contact ID

contact.first_name
string

First name

contact.last_name
string

Last name

contact.email
string

Email

contact.title
string

Title

contact.organization_name
string

Organization name

contact.owner_id
string

Owner ID

contact.account_id
string

Account ID

contact.present_raw_address
string

Raw address