# Forms API: Setting to Legacy

**URL:** <https://community.hubspot.com/t/forms-api-setting-to-legacy/99660>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, forms\
**Created:** [February 7, 2024, 2:06pm UTC](https://community.hubspot.com/t/forms-api-setting-to-legacy/99660 "2024-02-07T14:06:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MCarreiro](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mcarreiro/32/197026_2.png) [@MCarreiro](https://community.hubspot.com/u/MCarreiro)\
**Post date:** [February 7, 2024, 2:06pm UTC](https://community.hubspot.com/t/forms-api-setting-to-legacy/99660/1 "2024-02-07T14:06:04Z")

</div>

Hello,

I’m trying to use the Forms API to set my form’s theme to “legacy” but I’m not having any luck.  
I’m using a PATCH to the URL below:  
[http://api.hubapi.com/marketing/v3/forms/{form\_id}](http://api.hubapi.com/marketing/v3/forms/%7Bform_id%7D)  
I’m receiving a 200 response, but the body does not look to be changing the theme of my form. It remains at “default\_style”.

I’ve attempted to change only the “theme” parameter, along with grouping it with other fields as follows:

`{ "displayOptions": { "renderRawHtml": true, "theme": "legacy" }}`

Does anyone have any advice on how I should be making this PATCH request to update the Form theme?

Thank you,

-Michael

---

<div class="post-metadata">

**Author:** ![MCarreiro](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mcarreiro/32/197026_2.png) [@MCarreiro](https://community.hubspot.com/u/MCarreiro)\
**Post date:** [February 7, 2024, 2:33pm UTC](https://community.hubspot.com/t/forms-api-setting-to-legacy/99660/2 "2024-02-07T14:33:05Z")

</div>

Going to close this. I didn’t need to set my form to “legacy” to achieve what I needed. Instead, I could just set it to raw HTML and get the intended effect.

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [February 7, 2024, 2:34pm UTC](https://community.hubspot.com/t/forms-api-setting-to-legacy/99660/3 "2024-02-07T14:34:02Z")

</div>

Hi @MCarreiro

You can use the following curl:

```lia-code-sample
curl --location --request PUT 'https://api.hubapi.com/forms/v2/forms/27499d45-13a1-4a96-a01e-5bc6e5a15aea' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ACCESS_TOKEN' \
--data '{
 "name":"Enter form name here",
 "themeName":"legacy"
}'

```

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!
