# Update the content in the API when the field.json file changes.

**URL:** <https://community.hubspot.com/t/update-the-content-in-the-api-when-the-field-json-file-changes/134686>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [June 18, 2025, 3:26am UTC](https://community.hubspot.com/t/update-the-content-in-the-api-when-the-field-json-file-changes/134686 "2025-06-18T03:26:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![09747](https://avatars.discourse-cdn.com/v4/letter/0/ba8739/32.png) [@09747](https://community.hubspot.com/u/09747)\
**Post date:** [June 18, 2025, 3:26am UTC](https://community.hubspot.com/t/update-the-content-in-the-api-when-the-field-json-file-changes/134686/1 "2025-06-18T03:26:05Z")

</div>

I’m currently facing an issue: when I update a field name in field.json, the API still returns the old fields, which is confusing. Is there a way to make it return only the fields defined in the file?

 ![09747_0-1750217114042.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/10839f70e2f5d629a77d5581439fc26b6c283fdf.png)

---

<div class="post-metadata">

**Author:** ![DianaGomez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dianagomez/32/48035_2.png) [@DianaGomez](https://community.hubspot.com/u/DianaGomez)\
**Post date:** [June 18, 2025, 12:10pm UTC](https://community.hubspot.com/t/update-the-content-in-the-api-when-the-field-json-file-changes/134686/2 "2025-06-18T12:10:03Z")

</div>

Hi there,

Thanks for reaching out to the Community!

I would like to invite some members of our community who may offer valuable insights.— hey @evaldas , **[@sylvain\_tirreau](https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366)** , @SteveHTM - Could you share your advice?

Thanks for taking a look!

Diana

---

<div class="post-metadata">

**Author:** ![sylvain\_tirreau](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sylvain_tirreau/32/67408_2.png) [@sylvain\_tirreau](https://community.hubspot.com/u/sylvain_tirreau)\
**Post date:** [June 18, 2025, 12:22pm UTC](https://community.hubspot.com/t/update-the-content-in-the-api-when-the-field-json-file-changes/134686/3 "2025-06-18T12:22:27Z")

</div>

How do you modify the contents of the json file?

---

<div class="post-metadata">

**Author:** ![BrandonWoodruff](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brandonwoodruff/32/61045_2.png) [@BrandonWoodruff](https://community.hubspot.com/u/BrandonWoodruff)\
**Post date:** [June 18, 2025, 1:47pm UTC](https://community.hubspot.com/t/update-the-content-in-the-api-when-the-field-json-file-changes/134686/4 "2025-06-18T13:47:16Z")

</div>

Hello,

Here are some things that I would suggest to look into:

First thing to confirm is that the local updates and been pushed and published to HubSpot. When you update a module’s fields.json locally, those changes don’t automatically replace the schema that HubSpot has cached on its servers. That’s why your API calls keep returning the “old” fields even though you’ve renamed them in your local file. To get the API to reflect only what’s now in fields.json, follow these steps:

1. **Re-publish the module (or theme) to HubSpot**

2. **Clear the server cache**  
After you publish, HubSpot still holds a cached copy of the module schema. To clear it, append ?cacheBust=\<timestamp\> to your preview URLs (or call any API endpoint with that query string). For example:

GET [https://api.hubapi.com/cms/v3/extensions/modules/{moduleId}/fields.json?cacheBust=1623498765](https://api.hubapi.com/cms/v3/extensions/modules/%7BmoduleId%7D/fields.json?cacheBust=1623498765)

That cacheBust parameter forces HubSpot to reload your latest fields.json.

1. **Verify via the Fields API**  
Fetch the module’s fields directly to confirm only your new names exist:

curl \ -H “Authorization: Bearer YOUR\_ACCESS\_TOKEN” \ “[https://api.hubapi.com/cms/v3/extensions/modules/{moduleId}/fields?cacheBust=$](https://api.hubapi.com/cms/v3/extensions/modules/%7BmoduleId%7D/fields?cacheBust=$)(date +%s)”

You should now see exactly the names and definitions in your fields.json, no extras.

1. **If you’re talking about CRM object properties instead**  
Remember that editing a local fields.json won’t change your CRM schema. You must use the Properties API to create, update, or delete custom properties. For example, to delete an old property:

curl -X DELETE \ -H “Authorization: Bearer YOUR\_ACCESS\_TOKEN” \ “[https://api.hubapi.com/crm/v3/properties/contacts/old\_property\_name](https://api.hubapi.com/crm/v3/properties/contacts/old_property_name)”

And to list only active (non-archived) properties:

curl \ -H “Authorization: Bearer YOUR\_ACCESS\_TOKEN” \ “[https://api.hubapi.com/crm/v3/properties/contacts?archived=false](https://api.hubapi.com/crm/v3/properties/contacts?archived=false)”

* * *

**TL;DR** : Pushing your updated fields.json is just the first step. You must re-publish your module (or theme) and bust HubSpot’s cache before the Fields API will return only the fields you’ve defined. If you’re dealing with CRM properties instead, use the Properties API to manage what shows up.

Let me know if this helps, or if you have any other questions!

* * *

✔ Was I able to help answer your question? Help the community by **marking it as a solution.**

| ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/d/6d442215fdb229bddb9ae1c527b208c9b1c21ce6.jpeg) | **[Brandon Woodruff](https://www.linkedin.com/in/brandon-woody-woodruff/)**  
Senior Software Developer @ [Pearagon](https://www.pearagon.com/)Still have questions? Reach out at [brandon@pearagon.com](mailto:brandon@pearagon.com) ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/c/dcad77e6cf96145dd117147531ae4423b9b5cd91.png) |

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [June 18, 2025, 4:57pm UTC](https://community.hubspot.com/t/update-the-content-in-the-api-when-the-field-json-file-changes/134686/5 "2025-06-18T16:57:03Z")

</div>

@09747 - Assuming that @BrandonWoodruff hasd not covered your topic, I’d like to better understand what you are looking for here. Would you mind expanding on “the content” and “the API” you are referencing in your question?

Steve
