Set Primary Person
curl --request PATCH \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person \
--header 'Content-Type: application/json' \
--data '
{
"personId": "<string>"
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person"
payload = { "personId": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({personId: '<string>'})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person",
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([
'personId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person"
payload := strings.NewReader("{\n \"personId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person")
.header("Content-Type", "application/json")
.body("{\n \"personId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"personId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"categories": [
{
"id": "<string>",
"name": "<string>"
}
],
"id": "<string>",
"name": "<string>",
"domain": "<string>",
"tags": [
"<string>"
],
"status": "preferred",
"notes": "<string>",
"ratingQuality": 123,
"ratingLeadTime": 123,
"ratingPricing": 123,
"website": "<string>",
"accountNumber": "<string>",
"vatTaxId": "<string>",
"registrationNumber": "<string>",
"portalUrl": "<string>",
"portalLogin": "<string>",
"portalPasswordSet": true,
"paymentTerms": "net_30",
"creditLimit": "<string>",
"minOrderAmount": "<string>",
"standardDiscountPct": "<string>",
"defaultLeadTimeDays": 123,
"primaryPerson": {
"id": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"identity": {
"globalCompany": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"version": 123,
"suggestion": {
"candidates": [
{
"company": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"nameMatch": true,
"matchingHosts": [
"<string>"
],
"typeMatch": true
}
],
"expectedVersion": 123,
"evidenceFingerprint": "<string>"
}
}
}Companies
Set Primary Person
PATCH
/
v1
/
workspaces
/
{workspaceId}
/
contacts
/
companies
/
{companyId}
/
primary-person
Set Primary Person
curl --request PATCH \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person \
--header 'Content-Type: application/json' \
--data '
{
"personId": "<string>"
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person"
payload = { "personId": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({personId: '<string>'})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person', 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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person",
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([
'personId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person"
payload := strings.NewReader("{\n \"personId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person")
.header("Content-Type", "application/json")
.body("{\n \"personId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/primary-person")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"personId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"categories": [
{
"id": "<string>",
"name": "<string>"
}
],
"id": "<string>",
"name": "<string>",
"domain": "<string>",
"tags": [
"<string>"
],
"status": "preferred",
"notes": "<string>",
"ratingQuality": 123,
"ratingLeadTime": 123,
"ratingPricing": 123,
"website": "<string>",
"accountNumber": "<string>",
"vatTaxId": "<string>",
"registrationNumber": "<string>",
"portalUrl": "<string>",
"portalLogin": "<string>",
"portalPasswordSet": true,
"paymentTerms": "net_30",
"creditLimit": "<string>",
"minOrderAmount": "<string>",
"standardDiscountPct": "<string>",
"defaultLeadTimeDays": 123,
"primaryPerson": {
"id": "<string>",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"identity": {
"globalCompany": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"version": 123,
"suggestion": {
"candidates": [
{
"company": {
"id": "<string>",
"name": "<string>",
"primaryType": "brand",
"legalName": "<string>",
"country": "<string>",
"aliases": [
"<string>"
],
"domains": [
"<string>"
],
"retiredAt": "<string>"
},
"nameMatch": true,
"matchingHosts": [
"<string>"
],
"typeMatch": true
}
],
"expectedVersion": 123,
"evidenceFingerprint": "<string>"
}
}
}Body
application/json
Minimum string length:
1Response
200 - application/json
Show child attributes
Show child attributes
Available options:
preferred, approved, pending_approval, inactive Available options:
net_30, net_60, due_on_receipt, deposit_50 Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I