Skip to main content
PATCH
/
crm
/
companies
/
{id}
Patch a CRM company
curl --request PATCH \
  --url https://api.zeeg.me/v2/crm/companies/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "domain": "<string>",
  "description": "<string>",
  "websiteUrl": "<string>",
  "primaryLocation": "<string>",
  "socials": {
    "linkedin": "<string>",
    "twitter": "<string>",
    "facebook": "<string>",
    "instagram": "<string>"
  }
}
'
import requests

url = "https://api.zeeg.me/v2/crm/companies/{id}"

payload = {
"name": "<string>",
"domain": "<string>",
"description": "<string>",
"websiteUrl": "<string>",
"primaryLocation": "<string>",
"socials": {
"linkedin": "<string>",
"twitter": "<string>",
"facebook": "<string>",
"instagram": "<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({
name: '<string>',
domain: '<string>',
description: '<string>',
websiteUrl: '<string>',
primaryLocation: '<string>',
socials: {
linkedin: '<string>',
twitter: '<string>',
facebook: '<string>',
instagram: '<string>'
}
})
};

fetch('https://api.zeeg.me/v2/crm/companies/{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.zeeg.me/v2/crm/companies/{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([
'name' => '<string>',
'domain' => '<string>',
'description' => '<string>',
'websiteUrl' => '<string>',
'primaryLocation' => '<string>',
'socials' => [
'linkedin' => '<string>',
'twitter' => '<string>',
'facebook' => '<string>',
'instagram' => '<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.zeeg.me/v2/crm/companies/{id}"

payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"domain\": \"<string>\",\n \"description\": \"<string>\",\n \"websiteUrl\": \"<string>\",\n \"primaryLocation\": \"<string>\",\n \"socials\": {\n \"linkedin\": \"<string>\",\n \"twitter\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\"\n }\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.zeeg.me/v2/crm/companies/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"domain\": \"<string>\",\n \"description\": \"<string>\",\n \"websiteUrl\": \"<string>\",\n \"primaryLocation\": \"<string>\",\n \"socials\": {\n \"linkedin\": \"<string>\",\n \"twitter\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.zeeg.me/v2/crm/companies/{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 \"name\": \"<string>\",\n \"domain\": \"<string>\",\n \"description\": \"<string>\",\n \"websiteUrl\": \"<string>\",\n \"primaryLocation\": \"<string>\",\n \"socials\": {\n \"linkedin\": \"<string>\",\n \"twitter\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "status": 200,
  "company": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "Acme Corp",
    "domain": "acme.com",
    "description": "A global provider of anvils and gadgets.",
    "websiteUrl": "https://acme.com",
    "primaryLocation": "Phoenix, AZ",
    "industries": [
      "technology"
    ],
    "socials": {
      "linkedin": "https://linkedin.com/company/acme",
      "twitter": null,
      "facebook": null,
      "instagram": null
    },
    "customAttributes": {},
    "createdAt": "2025-01-15T09:00:00+00:00",
    "updatedAt": "2025-06-01T12:00:00+00:00"
  }
}
{
"message": "Unauthenticated."
}
{
"success": true,
"message": "<string>",
"status": 123
}
{
"success": true,
"message": "<string>",
"status": 123
}
{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field_name field is required."
]
}
}
Partially updates a CRM company record. Only fields you include in the request body are changed — omitted fields keep their current values. To update individual social links without overwriting the others, include only the keys you want to change inside socials:
{
  "socials": {
    "linkedin": "https://linkedin.com/company/updated"
  }
}
This updates linkedin only. twitter, facebook, and instagram are unchanged.

Authorizations

Authorization
string
header
required

Path Parameters

id
string<uuid>
required

UUID of the company record to update.

Body

application/json
name
string
domain
string | null
description
string | null
websiteUrl
string | null
primaryLocation
string | null
socials
object

Response

OK

success
boolean
Example:

true

status
integer
Example:

200

company
object

A CRM company record.

Last modified on June 11, 2026