<?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: /automation/v4 API HTTP 400 in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/automation-v4-API-HTTP-400/m-p/1164122#M82602</link>
    <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/953283"&gt;@shubjain&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to our community. I couldn't find a documentation match for these errors. I'd suggest you make a support ticket specifically for the error codes and:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;specify you are not asking for custom code help&lt;/LI&gt;
 &lt;LI&gt;you already understand &lt;I&gt;&lt;STRONG&gt;how&lt;/STRONG&gt;&lt;/I&gt; to use the REST API endpoints&lt;/LI&gt;
 &lt;LI&gt;you only need clarity on the meaning of these errors when using the endpoint&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 19:01:19 GMT</pubDate>
    <dc:creator>Jaycee_Lewis</dc:creator>
    <dc:date>2025-06-12T19:01:19Z</dc:date>
    <item>
      <title>/automation/v4 API HTTP 400</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/automation-v4-API-HTTP-400/m-p/1163815#M82581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to batch update workflows based on existing workflows in a different account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the GET&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/automation/v4/flows/ID" target="_blank"&gt;https://api.hubapi.com/automation/v4/flows/ID&lt;/A&gt;&amp;nbsp;endpoint to get the JSON of a workflow, and then PUT&amp;nbsp;&lt;A href="https://api.hubapi.com/automation/v4/flows/ID" target="_blank"&gt;https://api.hubapi.com/automation/v4/flows/ID&lt;/A&gt;&amp;nbsp;endpoint to update another workflow with the same JSON (patching the revisionId and ID as needed).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This works for most of my requests, but is failing for around 50 out of 200 with the following errors:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;Invalid request to flow update (38)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&amp;nbsp;Invalid custom code action request (5)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&amp;nbsp;Existing classic flow must have classic enrollment settings (5)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The main one is the "Invalid request to flow update" - does anyone know how I can determine what is wrong with my request?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jun 2025 09:31:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/automation-v4-API-HTTP-400/m-p/1163815#M82581</guid>
      <dc:creator>shubjain</dc:creator>
      <dc:date>2025-06-12T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: /automation/v4 API HTTP 400</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/automation-v4-API-HTTP-400/m-p/1164122#M82602</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/953283"&gt;@shubjain&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to our community. I couldn't find a documentation match for these errors. I'd suggest you make a support ticket specifically for the error codes and:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;specify you are not asking for custom code help&lt;/LI&gt;
 &lt;LI&gt;you already understand &lt;I&gt;&lt;STRONG&gt;how&lt;/STRONG&gt;&lt;/I&gt; to use the REST API endpoints&lt;/LI&gt;
 &lt;LI&gt;you only need clarity on the meaning of these errors when using the endpoint&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 19:01:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/automation-v4-API-HTTP-400/m-p/1164122#M82602</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-06-12T19:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: /automation/v4 API HTTP 400</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/automation-v4-API-HTTP-400/m-p/1164270#M82607</link>
      <description>&lt;P&gt;Hey, thanks for your response! I actually already spoke to Support and they suggested I post here so the developers could have a look - do you know anywhere else I may be able to ask?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 07:47:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/automation-v4-API-HTTP-400/m-p/1164270#M82607</guid>
      <dc:creator>shubjain</dc:creator>
      <dc:date>2025-06-13T07:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: /automation/v4 API HTTP 400</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/automation-v4-API-HTTP-400/m-p/1171771#M82972</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/953283"&gt;@shubjain&lt;/a&gt;&lt;/SPAN&gt; I don't, unfortunately. My instinct is to press support for an answer on the error codes, specifically because those are generated via the product and not something a community member would have access to. Where our community members can help is with looking at code issues or troubleshooting your request. If you want to share the request and response here, maybe we can, as a community, take a look.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Talk soon! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 15:52:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/automation-v4-API-HTTP-400/m-p/1171771#M82972</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-07-01T15:52:12Z</dc:date>
    </item>
  </channel>
</rss>

