# Updating schema properties

**URL:** <https://community.hubspot.com/t/updating-schema-properties/54407>\
**Category:** APIs & Integrations\
**Created:** [April 5, 2022, 11:23am UTC](https://community.hubspot.com/t/updating-schema-properties/54407 "2022-04-05T11:23:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dino56](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@dino56](https://community.hubspot.com/u/dino56)\
**Post date:** [April 5, 2022, 11:23am UTC](https://community.hubspot.com/t/updating-schema-properties/54407/1 "2022-04-05T11:23:29Z")

</div>

Hey, I’m trying to update an existing schema for my custom objects.  
I can’t find any examples or documentation about it, is it even possible?  
I was able to update the labels and some other properties like searchable and required properties.  
This is what I see at the type definition for the payload of this operation:

```lia-code-sample
import { ObjectTypeDefinitionLabels } from './ObjectTypeDefinitionLabels';
export declare class ObjectTypeDefinitionPatch {
 'labels'?: ObjectTypeDefinitionLabels;
 'requiredProperties'?: Array<string>;
 'searchableProperties'?: Array<string>;
 'primaryDisplayProperty'?: string;
 'secondaryDisplayProperties'?: Array<string>;
 'restorable'?: boolean;
 static readonly discriminator: string | undefined;
 static readonly attributeTypeMap: Array<{
 name: string;
 baseName: string;
 type: string;
 format: string;
 }>;
 static getAttributeTypeMap(): {
 name: string;
 baseName: string;
 type: string;
 format: string;
 }[];
 constructor();
}

```

---

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [April 5, 2022, 2:47pm UTC](https://community.hubspot.com/t/updating-schema-properties/54407/2 "2022-04-05T14:47:08Z")

</div>

Hi @dino56,

[On this documentation](https://developers.hubspot.com/docs/api/crm/crm-custom-objects) you can find code samples in various languages to make a PATCH request to the custom objects schema enpoint.

 ![LMeert_0-1649169998891.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/7/a7214280563bd8f288d3b4c3d8e27281b78729eb.png)

Hope this helps ! If it does, please consider marking this as a solution !

Have a good day,

Ludwig

---

<div class="post-metadata">

**Author:** ![dino56](https://avatars.discourse-cdn.com/v4/letter/d/7cd45c/32.png) [@dino56](https://community.hubspot.com/u/dino56)\
**Post date:** [April 5, 2022, 3:56pm UTC](https://community.hubspot.com/t/updating-schema-properties/54407/3 "2022-04-05T15:56:37Z")

</div>

Hey, thanks for the answer but as I mentioned I’m trying to update the properties in my schema.  
I’ve read that documentation fully and I don’t see anything related to my question.  
Can you be more specific? maybe I’m blind and I’m not seeing it.  
In that screenshot you shared there’s nothing showing how to update the properties. Everything in the schema can be updated except the properties.

---

<div class="post-metadata">

**Author:** ![LMeert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lmeert/32/103847_2.png) [@LMeert](https://community.hubspot.com/u/LMeert)\
**Post date:** [April 5, 2022, 4:25pm UTC](https://community.hubspot.com/t/updating-schema-properties/54407/4 "2022-04-05T16:25:37Z")

</div>

Hey,  
My bad I read your post too quickly !  
Indeed you won’t be able to edit your object properties using this endpoint.  
Try using this one though : [CRM Properties API](https://developers.hubspot.com/docs/api/crm/properties).  
If you have several properties to update, use the batch API call to make several edits in one call.  
Hope this helps 🙂

Ludwig

---

<div class="post-metadata">

**Author:** ![mathew\_murphy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mathew_murphy/32/73754_2.png) [@mathew\_murphy](https://community.hubspot.com/u/mathew_murphy)\
**Post date:** [April 4, 2023, 7:07pm UTC](https://community.hubspot.com/t/updating-schema-properties/54407/5 "2023-04-04T19:07:41Z")

</div>

> * * *
> 
> Try using this one though : [CRM Properties API](https://developers.hubspot.com/docs/api/crm/properties).  
> If you have several properties to update, use the batch API call to make several edits in one call.
> 
> * * *

Looking at the documentation, there doesn’t seem to be a batch API call to make several _updates_ in one call.

You can create, read or achive multiple properties, but you can’t update multiple properties. You can only update via PATCH a single property at a time.
