Response is 200 & blank for success & failure for "Create flow API- /api/v2/flows" API

We are using the "Create flow API- /api/v2/flows", the API is returning blank response for success case as well as failure case. We tried using the "Get a pageable list of flows, filtered by query parameters" API just after creating, but it is taking some time to reflect the new flow in the list. Can you please suggest any solution for this issue. Screenshot (196) is failure case.

You need to poll the /api/v2/flows/jobs/{jobId} endpoint until the status field in the response is either success or failure. If it succeeded, the flow id field will be populated with the id of the created flow. If it failed, look at the messages field to see what went wrong.

https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-flows-jobs--jobId-

Hi MelissaBailey,

Thank you for the solution, it worked. I can figure out whether the flow is created or not.I have another doubt, is it possible to know the reason of failure incase the job fails?

Use the expand query parameter to get the messages, it will get the errors that occurred during the job.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.