<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Forms API: Setting to Legacy in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Forms-API-Setting-to-Legacy/m-p/918603#M70893</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/483344"&gt;@MCarreiro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the following curl:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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"
}'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1" data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.\nThanks!&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:769,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;11&amp;quot;:4,&amp;quot;12&amp;quot;:0}"&gt;I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member.&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 14:34:02 GMT</pubDate>
    <dc:creator>GRajput</dc:creator>
    <dc:date>2024-02-07T14:34:02Z</dc:date>
    <item>
      <title>Forms API: Setting to Legacy</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Forms-API-Setting-to-Legacy/m-p/918573#M70890</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use the Forms API to set my form's theme to "legacy" but I'm not having any luck.&lt;BR /&gt;&lt;BR /&gt;I'm using a PATCH to the URL below:&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="http://api.hubapi.com/marketing/v3/forms/{form_id}" target="_blank"&gt;http://api.hubapi.com/marketing/v3/forms/{form_id}&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;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".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attempted to change only the "theme" parameter, along with grouping it with other fields as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;  "displayOptions"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    "renderRawHtml"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;    "theme"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"legacy"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;  }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Does anyone have any advice on how I should be making this PATCH request to update the Form theme?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;-Michael&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:06:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Forms-API-Setting-to-Legacy/m-p/918573#M70890</guid>
      <dc:creator>MCarreiro</dc:creator>
      <dc:date>2024-02-07T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Forms API: Setting to Legacy</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Forms-API-Setting-to-Legacy/m-p/918601#M70892</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:33:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Forms-API-Setting-to-Legacy/m-p/918601#M70892</guid>
      <dc:creator>MCarreiro</dc:creator>
      <dc:date>2024-02-07T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Forms API: Setting to Legacy</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Forms-API-Setting-to-Legacy/m-p/918603#M70893</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/483344"&gt;@MCarreiro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the following curl:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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"
}'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-sheets-root="1" data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.\nThanks!&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:769,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;11&amp;quot;:4,&amp;quot;12&amp;quot;:0}"&gt;I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member.&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:34:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Forms-API-Setting-to-Legacy/m-p/918603#M70893</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2024-02-07T14:34:02Z</dc:date>
    </item>
  </channel>
</rss>

