Skip to main content
PATCH
/
crm
/
objects
/
{slug}
Update a custom CRM object
curl --request PATCH \
  --url https://api.zeeg.me/v2/crm/objects/{slug} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "singularName": "Product",
  "pluralName": "Products"
}
'
import requests

url = "https://api.zeeg.me/v2/crm/objects/{slug}"

payload = {
"singularName": "Product",
"pluralName": "Products"
}
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({singularName: 'Product', pluralName: 'Products'})
};

fetch('https://api.zeeg.me/v2/crm/objects/{slug}', 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/objects/{slug}",
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([
'singularName' => 'Product',
'pluralName' => 'Products'
]),
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/objects/{slug}"

payload := strings.NewReader("{\n \"singularName\": \"Product\",\n \"pluralName\": \"Products\"\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/objects/{slug}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"singularName\": \"Product\",\n \"pluralName\": \"Products\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.zeeg.me/v2/crm/objects/{slug}")

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 \"singularName\": \"Product\",\n \"pluralName\": \"Products\"\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "status": 200,
  "object": {
    "slug": "products",
    "singularName": "Product",
    "pluralName": "Products",
    "isStandard": false,
    "isActive": true,
    "attributes": [
      {
        "key": "title",
        "label": "Title",
        "type": "text",
        "isRequired": true,
        "isStandard": false
      }
    ],
    "createdAt": "2025-06-01T10:00:00+00:00",
    "updatedAt": "2025-06-15T14:30:00+00:00"
  }
}
{
"message": "Unauthenticated."
}
{
"success": false,
"message": "You don't have permission to update standard objects.",
"status": 403
}
{
"success": true,
"message": "<string>",
"status": 123
}
{
"message": "The given data was invalid.",
"errors": {
"field_name": [
"The field_name field is required."
]
}
}
Partially updates a custom CRM object’s display metadata. Only fields you include are changed — omitted fields retain their current values.

What can and cannot be changed

FieldUpdatableNotes
singularNameYes
pluralNameYes
slugNoImmutable after creation
isActiveNoNot exposed on this endpoint
Standard objects (people, companies) cannot be updated — the endpoint returns 403. To add or modify attributes, use POST /crm/objects/{slug}/attributes and PATCH /crm/objects/{slug}/attributes/{attributeKey}.

Authorizations

Authorization
string
header
required

Path Parameters

slug
string
required

The slug of the custom object to update.

Example:

"products"

Body

application/json
singularName
string

New singular display name.

Maximum string length: 255
Example:

"Product"

pluralName
string

New plural display name.

Maximum string length: 255
Example:

"Products"

Response

OK

success
boolean
Example:

true

status
integer
Example:

200

object
object

A CRM object definition including its full attribute schema.

Last modified on June 11, 2026