Cross-post of HubSpot/hubspot-api-nodejs#695 — the same four Flows v4 errors surface when scripting workflows from this Python SDK, and the error messages mislead in the same way. Reproducible payloads and fixes: https://www.elemra.com/learn/hubspot-flows-v4-api-errors
Summary of what to know before hitting POST /automation/v4/flows:
- Legacy
actionTypeId: "0-13" returns HTTP 500. Use "0-63809083" (add) / "0-63863438" (remove).
- Top-level
type field is required and must match objectTypeId (CONTACT_FLOW for 0-1, PLATFORM_FLOW for 0-3).
- ENUM properties reject
IS_NOT_EQUAL_TO; use IS_NONE_OF with a single-element values array.
- Unified-events filter branches cannot nest — promote to top-level
eventFilterBranches[] entries.
Same offer as on the nodejs issue: happy to open a PR against the SDK's error messages or docs if useful.
Cross-post of HubSpot/hubspot-api-nodejs#695 — the same four Flows v4 errors surface when scripting workflows from this Python SDK, and the error messages mislead in the same way. Reproducible payloads and fixes: https://www.elemra.com/learn/hubspot-flows-v4-api-errors
Summary of what to know before hitting
POST /automation/v4/flows:actionTypeId: "0-13"returns HTTP 500. Use"0-63809083"(add) /"0-63863438"(remove).typefield is required and must matchobjectTypeId(CONTACT_FLOWfor0-1,PLATFORM_FLOWfor0-3).IS_NOT_EQUAL_TO; useIS_NONE_OFwith a single-elementvaluesarray.eventFilterBranches[]entries.Same offer as on the nodejs issue: happy to open a PR against the SDK's error messages or docs if useful.