APIs & Integrations

shubjain
Member

/automation/v4 API HTTP 400

Hi,

 

I'm trying to batch update workflows based on existing workflows in a different account.

 

I use the GET https://api.hubapi.com/automation/v4/flows/ID endpoint to get the JSON of a workflow, and then PUT https://api.hubapi.com/automation/v4/flows/ID endpoint to update another workflow with the same JSON (patching the revisionId and ID as needed).

 

This works for most of my requests, but is failing for around 50 out of 200 with the following errors:

 

Invalid request to flow update (38)

- Invalid custom code action request (5)
- Existing classic flow must have classic enrollment settings (5)
 
The main one is the "Invalid request to flow update" - does anyone know how I can determine what is wrong with my request?
0 Upvotes
3 Replies 3
Jaycee_Lewis
Community Manager
Community Manager

/automation/v4 API HTTP 400

Hey, @shubjain 👋 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:

  • specify you are not asking for custom code help
  • you already understand how to use the REST API endpoints
  • you only need clarity on the meaning of these errors when using the endpoint

Best,

Jaycee


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes
shubjain
Member

/automation/v4 API HTTP 400

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?

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

/automation/v4 API HTTP 400

Hey, @shubjain 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. 

 

Talk soon! — Jaycee


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes