Skip to main content
PATCH
/
crm-object-schemas
/
v3
/
schemas
/
{objectType}
cURL
curl --request PATCH \
  --url https://api.hubapi.com/crm-object-schemas/v3/schemas/{objectType} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "primaryDisplayProperty": "my_object_property",
  "requiredProperties": [
    "my_object_property"
  ],
  "searchableProperties": [
    "my_object_property"
  ]
}
'
{
  "id": "123456",
  "createdAt": "2020-02-20T18:07:11.390Z",
  "updatedAt": "2020-02-21T14:13:28.818002Z",
  "labels": {
    "singular": "My object",
    "plural": "My objects"
  },
  "requiredProperties": [
    "my_object_property"
  ],
  "searchableProperties": [
    "my_object_property"
  ],
  "primaryDisplayProperty": "my_object_property",
  "portalId": 12345678,
  "metaType": "PORTAL_SPECIFIC",
  "name": "my_object"
}

Supported products

Requires one of the following products or higher.
Marketing HubMarketing Hub -Enterprise
Sales HubSales Hub -Enterprise
Service HubService Hub -Enterprise
Content HubContent Hub -Enterprise
Data HubData Hub -Enterprise

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

objectType
string
required

Fully qualified name or object type ID of your schema.

Body

application/json

Attributes to update in your schema.

Defines attributes to update on an object type.

clearDescription
boolean
description
string
labels
object

Singular and plural labels for the object. Used in CRM display.

Example:
{
"singular": "My object",
"plural": "My objects"
}
primaryDisplayProperty
string

The name of the primary property for this object. This will be displayed as primary on the HubSpot record page for this object type.

requiredProperties
string[]

The names of properties that should be required when creating an object of this type.

restorable
boolean
searchableProperties
string[]

Names of properties that will be indexed for this object type in by HubSpot's product search.

secondaryDisplayProperties
string[]

The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type.

Response

successful operation

Defines an object type.

id
string
required

A unique ID for this object type. Will be defined as {meta-type}-{unique ID}.

labels
object
required

Singular and plural labels for the object. Used in CRM display.

Example:
{
"singular": "My object",
"plural": "My objects"
}
name
string
required

A unique name for this object. For internal use only.

requiredProperties
string[]
required

The names of properties that should be required when creating an object of this type.

archived
boolean
createdAt
string<date-time>

When the object type was created.

description
string
fullyQualifiedName
string
objectTypeId
string
portalId
integer<int32>

The ID of the account that this object type is specific to.

primaryDisplayProperty
string

The name of the primary property for this object. This will be displayed as primary on the HubSpot record page for this object type.

searchableProperties
string[]

Names of properties that will be indexed for this object type in by HubSpot's product search.

secondaryDisplayProperties
string[]

The names of secondary properties for this object. These will be displayed as secondary on the HubSpot record page for this object type.

updatedAt
string<date-time>

When the object type was last updated.

Last modified on December 16, 2025