# Forms V3 API - update form definition error

**URL:** <https://community.hubspot.com/t/forms-v3-api-update-form-definition-error/106706>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [May 8, 2024, 11:33am UTC](https://community.hubspot.com/t/forms-v3-api-update-form-definition-error/106706 "2024-05-08T11:33:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EIbbetson](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@EIbbetson](https://community.hubspot.com/u/EIbbetson)\
**Post date:** [May 8, 2024, 11:33am UTC](https://community.hubspot.com/t/forms-v3-api-update-form-definition-error/106706/1 "2024-05-08T11:33:23Z")

</div>

Hello,

I am working from an Enterprise portal.

I have a form that I want to update, I could use partially or complete but same error for both.

The purpose of editing the definition is because the text I want to be on the form needs to be different each time I send the form out. This text is stored outside of HubSpot and so an API call to edit the form text is required.

I am using:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fmarketing-forms-v3%2Fguide)**

For:

Update a form definition  
Update all fields of a hubspot form definition.

PUT /marketing/v3/forms/{formId}

And:

Partially update a form definition  
Update some of the form definition components

PATCH /marketing/v3/forms/{formId}

Error is:

{  
“status”: “error”,  
“message”: “internal error”,  
“correlationId”: “b55b0db1-19e1-4e5d-9784-98782efea8aa”,  
“category”: “VALIDATION\_ERROR”  
}

I have included the id of the form in the request and the URL. I have tried to remove elements like layout and design, recapta (which was set to false anyway), lifecycle stages and checking the name and date for updateAt and createdAt were correct.

I have multiple of the same error, different correlationId.

I have checked the submission fields contain fields that exist and the dropdown choices exist.

I designed the JSON output from using the example provided, it is valid JSON.

**EDIT:**

Plus I used the GET form definition for the form after I designed it on the front-end. From there I used the JSON response of the definition to ensure I had the correct results.

Here are more correlation ids which will show the request body

6cc007f5-ecd4-44c3-aaeb-6e6cf0c07724

28d177d6-efc9-4fa5-af2b-26b16b541d06

---

<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:** [May 9, 2024, 9:11pm UTC](https://community.hubspot.com/t/forms-v3-api-update-form-definition-error/106706/2 "2024-05-09T21:11:07Z")

</div>

Hey, @EIbbetson👋 did you get this resolved? If not, I have a troubleshooting suggestion.

Have you tried logging out your errors more robustly? With something like:

```lia-code-sample
try {
 const response = await axios.put(url, formData, config);
 console.log('Form updated successfully:', response.data);
 } catch (error) {
 if (error.response) {
 // A non 2xx status code
 console.error('API responded with an error:', error.response.status, error.response.data);
 } else if (error.request) {
 // No response was received
 console.error('No response received:', error.request);
 } else {
 // Something happened
 console.error('Error setting up the request:', error.message);
 }
 }

```

Talk soon! — Jaycee

---

<div class="post-metadata">

**Author:** ![EIbbetson](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@EIbbetson](https://community.hubspot.com/u/EIbbetson)\
**Post date:** [May 9, 2024, 9:29pm UTC](https://community.hubspot.com/t/forms-v3-api-update-form-definition-error/106706/3 "2024-05-09T21:29:59Z")

</div>

I am using postman to test the json body I am using is working so I haven’t got a script.
