<?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 Workflows v4 API: dataSources accepted on POST/PUT but not persisted in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Workflows-v4-API-dataSources-accepted-on-POST-PUT-but-not/m-p/1257279#M87087</link>
    <description>&lt;H2&gt;Workflows v4 API: dataSources accepted on POST/PUT but not persisted&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Summary&lt;/H3&gt;&lt;P&gt;The &lt;STRONG&gt;POST /automation/v4/flows&lt;/STRONG&gt; endpoint accepts and validates the &lt;STRONG&gt;dataSources&lt;/STRONG&gt; field but does not persist it. A subsequent &lt;STRONG&gt;GET&lt;/STRONG&gt; returns an empty array regardless of what was sent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Test 1: POST with valid dataSources&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;POST /automation/v4/flows

{
  "type": "CONTACT_FLOW",
  "objectTypeId": "0-1",
  "canEnrollFromSalesforce": false,
  "isEnabled": false,
  "flowType": "WORKFLOW",
  "actions": [],
  "timeWindows": [],
  "blockedDates": [],
  "customProperties": {},
  "suppressionListIds": [],
  "dataSources": [
    {
      "name": "test_form_source",
      "objectTypeId": "0-15",
      "associationTypeId": 77,
      "associationCategory": "HUBSPOT_DEFINED",
      "sortBy": {
        "property": "hs_createdate",
        "missing": null,
        "order": "DESC"
      },
      "type": "ASSOCIATION"
    }
  ],
  "name": "Test workflow with dataSources"
}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt; 201 Created (flow ID returned)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GET on the created flow:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "dataSources": []
}&lt;/PRE&gt;&lt;P&gt;The data source was accepted but not persisted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Test 2: POST with dataSources missing required "name" field&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "dataSources": [
    {
      "objectTypeId": "0-15",
      "associationTypeId": 77,
      "associationCategory": "HUBSPOT_DEFINED",
      "sortBy": {
        "property": "hs_createdate",
        "missing": null,
        "order": "DESC"
      },
      "type": "ASSOCIATION"
    }
  ]
}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;HTTP 400 VALIDATION_ERROR
"Invalid input JSON on line 1, column 400.
Some required fields were not set: [name]"&lt;/PRE&gt;&lt;P&gt;This proves the API &lt;STRONG&gt;parses and validates&lt;/STRONG&gt; the dataSources structure — it is not silently ignored during deserialization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Test 3: POST with empty dataSources (baseline)&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "dataSources": []
}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt; 201 Created, GET returns "dataSources": []&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Test 4: PUT (update) also drops dataSources&lt;/H3&gt;&lt;P&gt;Updating an existing workflow that has UI-configured data sources with new data source names via &lt;STRONG&gt;PUT /automation/v4/flows/{flowId}&lt;/STRONG&gt;: the PUT succeeds, but GET returns the original data source names unchanged. The dataSources field is also not persisted on PUT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Reproduction steps&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;POST /automation/v4/flows&lt;/STRONG&gt; with a valid dataSources array containing an ASSOCIATION type entry with all required fields (name, objectTypeId, associationTypeId, associationCategory, type)&lt;/LI&gt;&lt;LI&gt;Note the returned flow ID&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;GET /automation/v4/flows/{flowId}&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Observe dataSources is [] despite the POST payload containing valid entries&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Expected behavior&lt;/H2&gt;&lt;P&gt;Per the &lt;A href="https://developers.hubspot.com/docs/api-reference/automation-automation-v4-v4/workflows/post-automation-v4-flows" target="_blank" rel="noopener noreferrer"&gt;API reference&lt;/A&gt;, dataSources is a &lt;STRONG&gt;required&lt;/STRONG&gt; field on POST /automation/v4/flows. The documentation specifies the ASSOCIATION subtype with required fields name, objectTypeId, associationTypeId, associationCategory, and type.&lt;/P&gt;&lt;P&gt;The API should persist data sources sent in POST/PUT payloads, or the documentation should clarify that data sources can only be configured via the HubSpot UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Actual behavior&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;The API &lt;STRONG&gt;deserializes&lt;/STRONG&gt; the dataSources field (proven by validation error when name is missing)&lt;/LI&gt;&lt;LI&gt;The API &lt;STRONG&gt;accepts&lt;/STRONG&gt; valid dataSources without error&lt;/LI&gt;&lt;LI&gt;The API &lt;STRONG&gt;does not persist&lt;/STRONG&gt; them — GET always returns the pre-existing data sources (or [] for new workflows)&lt;/LI&gt;&lt;LI&gt;Data sources can only be created/modified through the HubSpot UI&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Impact&lt;/H2&gt;&lt;P&gt;Workflows that use {{ fetched_objects.&amp;lt;name&amp;gt;.&amp;lt;property&amp;gt; }} template references in action fields cannot be fully deployed via the API. The data sources must be manually configured in the UI after API-based workflow creation, and the HubSpot-generated data source names must then be copied back into the deployment tooling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Environment&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;API version: Workflows v4&lt;/LI&gt;&lt;LI&gt;Endpoint: POST /automation/v4/flows, PUT /automation/v4/flows/{flowId}&lt;/LI&gt;&lt;LI&gt;Portal type: Enterprise&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone found a workaround for this, or am I missing something obvious? Any insight would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue has also been submitted via the &lt;A href="https://developers.hubspot.com/feedback" target="_blank" rel="noopener noreferrer"&gt;HubSpot Developer Feedback form&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2026 18:23:36 GMT</pubDate>
    <dc:creator>EdoardoP</dc:creator>
    <dc:date>2026-03-09T18:23:36Z</dc:date>
    <item>
      <title>Workflows v4 API: dataSources accepted on POST/PUT but not persisted</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Workflows-v4-API-dataSources-accepted-on-POST-PUT-but-not/m-p/1257279#M87087</link>
      <description>&lt;H2&gt;Workflows v4 API: dataSources accepted on POST/PUT but not persisted&lt;/H2&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Summary&lt;/H3&gt;&lt;P&gt;The &lt;STRONG&gt;POST /automation/v4/flows&lt;/STRONG&gt; endpoint accepts and validates the &lt;STRONG&gt;dataSources&lt;/STRONG&gt; field but does not persist it. A subsequent &lt;STRONG&gt;GET&lt;/STRONG&gt; returns an empty array regardless of what was sent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Test 1: POST with valid dataSources&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;POST /automation/v4/flows

{
  "type": "CONTACT_FLOW",
  "objectTypeId": "0-1",
  "canEnrollFromSalesforce": false,
  "isEnabled": false,
  "flowType": "WORKFLOW",
  "actions": [],
  "timeWindows": [],
  "blockedDates": [],
  "customProperties": {},
  "suppressionListIds": [],
  "dataSources": [
    {
      "name": "test_form_source",
      "objectTypeId": "0-15",
      "associationTypeId": 77,
      "associationCategory": "HUBSPOT_DEFINED",
      "sortBy": {
        "property": "hs_createdate",
        "missing": null,
        "order": "DESC"
      },
      "type": "ASSOCIATION"
    }
  ],
  "name": "Test workflow with dataSources"
}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt; 201 Created (flow ID returned)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GET on the created flow:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "dataSources": []
}&lt;/PRE&gt;&lt;P&gt;The data source was accepted but not persisted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Test 2: POST with dataSources missing required "name" field&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "dataSources": [
    {
      "objectTypeId": "0-15",
      "associationTypeId": 77,
      "associationCategory": "HUBSPOT_DEFINED",
      "sortBy": {
        "property": "hs_createdate",
        "missing": null,
        "order": "DESC"
      },
      "type": "ASSOCIATION"
    }
  ]
}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;HTTP 400 VALIDATION_ERROR
"Invalid input JSON on line 1, column 400.
Some required fields were not set: [name]"&lt;/PRE&gt;&lt;P&gt;This proves the API &lt;STRONG&gt;parses and validates&lt;/STRONG&gt; the dataSources structure — it is not silently ignored during deserialization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Test 3: POST with empty dataSources (baseline)&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{
  "dataSources": []
}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt; 201 Created, GET returns "dataSources": []&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Test 4: PUT (update) also drops dataSources&lt;/H3&gt;&lt;P&gt;Updating an existing workflow that has UI-configured data sources with new data source names via &lt;STRONG&gt;PUT /automation/v4/flows/{flowId}&lt;/STRONG&gt;: the PUT succeeds, but GET returns the original data source names unchanged. The dataSources field is also not persisted on PUT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Reproduction steps&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;POST /automation/v4/flows&lt;/STRONG&gt; with a valid dataSources array containing an ASSOCIATION type entry with all required fields (name, objectTypeId, associationTypeId, associationCategory, type)&lt;/LI&gt;&lt;LI&gt;Note the returned flow ID&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;GET /automation/v4/flows/{flowId}&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Observe dataSources is [] despite the POST payload containing valid entries&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Expected behavior&lt;/H2&gt;&lt;P&gt;Per the &lt;A href="https://developers.hubspot.com/docs/api-reference/automation-automation-v4-v4/workflows/post-automation-v4-flows" target="_blank" rel="noopener noreferrer"&gt;API reference&lt;/A&gt;, dataSources is a &lt;STRONG&gt;required&lt;/STRONG&gt; field on POST /automation/v4/flows. The documentation specifies the ASSOCIATION subtype with required fields name, objectTypeId, associationTypeId, associationCategory, and type.&lt;/P&gt;&lt;P&gt;The API should persist data sources sent in POST/PUT payloads, or the documentation should clarify that data sources can only be configured via the HubSpot UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Actual behavior&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;The API &lt;STRONG&gt;deserializes&lt;/STRONG&gt; the dataSources field (proven by validation error when name is missing)&lt;/LI&gt;&lt;LI&gt;The API &lt;STRONG&gt;accepts&lt;/STRONG&gt; valid dataSources without error&lt;/LI&gt;&lt;LI&gt;The API &lt;STRONG&gt;does not persist&lt;/STRONG&gt; them — GET always returns the pre-existing data sources (or [] for new workflows)&lt;/LI&gt;&lt;LI&gt;Data sources can only be created/modified through the HubSpot UI&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Impact&lt;/H2&gt;&lt;P&gt;Workflows that use {{ fetched_objects.&amp;lt;name&amp;gt;.&amp;lt;property&amp;gt; }} template references in action fields cannot be fully deployed via the API. The data sources must be manually configured in the UI after API-based workflow creation, and the HubSpot-generated data source names must then be copied back into the deployment tooling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Environment&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;API version: Workflows v4&lt;/LI&gt;&lt;LI&gt;Endpoint: POST /automation/v4/flows, PUT /automation/v4/flows/{flowId}&lt;/LI&gt;&lt;LI&gt;Portal type: Enterprise&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone found a workaround for this, or am I missing something obvious? Any insight would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue has also been submitted via the &lt;A href="https://developers.hubspot.com/feedback" target="_blank" rel="noopener noreferrer"&gt;HubSpot Developer Feedback form&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 18:23:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Workflows-v4-API-dataSources-accepted-on-POST-PUT-but-not/m-p/1257279#M87087</guid>
      <dc:creator>EdoardoP</dc:creator>
      <dc:date>2026-03-09T18:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows v4 API: dataSources accepted on POST/PUT but not persisted</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Workflows-v4-API-dataSources-accepted-on-POST-PUT-but-not/m-p/1257468#M87093</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/1012726"&gt;@EdoardoP&lt;/a&gt;&lt;/SPAN&gt; and thanks for reaching out to the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;It's great that you've submitted the feedback form, thank you! This seems like a bug so I'd also reach out to our Support Team for this, including:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;- The x-HubSpot-Correlation-ID from your API responses&lt;BR /&gt;- Your HubSpot Account ID&lt;BR /&gt;- The specific flow IDs from your tests&lt;BR /&gt;- The link to this Community post&lt;BR /&gt;&lt;BR /&gt;Since the Workflows v4 API is currently in beta, it’s expected that some features may still be in progress. We appreciate your understanding as the functionality continues to improve!&lt;BR /&gt;&lt;BR /&gt;Let's consult our Top Experts here: Hi &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/63499"&gt;@SteveHTM&lt;/a&gt;&lt;/SPAN&gt;, &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/1007207"&gt;@Christensen&lt;/a&gt;&lt;/SPAN&gt; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt; do you have any insights to share with &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/1012726"&gt;@EdoardoP&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Thanks so much and have a great day!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 11:42:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Workflows-v4-API-dataSources-accepted-on-POST-PUT-but-not/m-p/1257468#M87093</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2026-03-10T11:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows v4 API: dataSources accepted on POST/PUT but not persisted</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Workflows-v4-API-dataSources-accepted-on-POST-PUT-but-not/m-p/1257635#M87100</link>
      <description>&lt;P&gt;You’re not missing anything. Right now the Workflows v4 API accepts dataSources but does not persist them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gets validated during the request, but the backend ignores it when saving the workflow. That’s why the GET response returns [] or the original values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment, data sources can only be configured through the HubSpot UI. The usual workaround is to create the workflow via API, then add the data sources in the UI and reference the generated names in your templates.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 18:31:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Workflows-v4-API-dataSources-accepted-on-POST-PUT-but-not/m-p/1257635#M87100</guid>
      <dc:creator>NSavi</dc:creator>
      <dc:date>2026-03-10T18:31:40Z</dc:date>
    </item>
  </channel>
</rss>

