# Changing Custom Object Secondary Display Properties via API

**URL:** <https://community.hubspot.com/t/changing-custom-object-secondary-display-properties-via-api/73241>\
**Category:** APIs & Integrations\
**Created:** [January 18, 2023, 9:47pm UTC](https://community.hubspot.com/t/changing-custom-object-secondary-display-properties-via-api/73241 "2023-01-18T21:47:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBowman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gbowman/32/25270_2.png) [@GBowman](https://community.hubspot.com/u/GBowman)\
**Post date:** [January 18, 2023, 9:47pm UTC](https://community.hubspot.com/t/changing-custom-object-secondary-display-properties-via-api/73241/1 "2023-01-18T21:47:36Z")

</div>

We are currently trying to change some property field types of a custom object for an upcoming integration. However we can’t update the field types for some properties because they have been set as secondary display properties.

It seems there is no way to change them manually but I’m wondering if it can be done via API?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [January 19, 2023, 11:04pm UTC](https://community.hubspot.com/t/changing-custom-object-secondary-display-properties-via-api/73241/2 "2023-01-19T23:04:03Z")

</div>

Hi, @GBowman. Have you already tried editing the object schema? From this document? — [Update existing custom objects](https://developers.hubspot.com/docs/api/crm/crm-custom-objects#update-existing-custom-objects).

“Once your custom object is defined:

- The `requiredProperties`, `searchableProperties`, `primaryDisplayProperty`, and `secondaryDisplayProperties` can be changed by updating the object’s schema. To set a new property as a required, searchable, or display property, you need to create the property prior to updating the schema.
- Make a `PATCH` request to `https://api.hubapi.com/crm/v3/schemas/{objectTypeId}`”

If you end up still stuck, drop your request and response to the above endpoint here, and we’ll see if the community has any additional ideas.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![GBowman](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gbowman/32/25270_2.png) [@GBowman](https://community.hubspot.com/u/GBowman)\
**Post date:** [January 24, 2023, 8:05pm UTC](https://community.hubspot.com/t/changing-custom-object-secondary-display-properties-via-api/73241/3 "2023-01-24T20:05:35Z")

</div>

Hi [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074), we tested this solution and were able to edit the secondary display properties. Thanks for your help.
