What problem are you observing?
We are calling the following NERM API endpoint:
/api/workflow_sessions
We have included as query parameters the following:
profile_id
status
Example for the full api endpoint call:
/api/workflow_sessions?profile_id=xyz$status=pending approval
When there are running workflow sessions with this status I get an array of all these sessions with an HTTP 200 OK response. However when there are no results, I get an HTTP 400 OK (bad request) with an error message in the body.
Performing this call from a NERM workflow using the REST API action results in the workflow running into an error when there are no results.
What is the correct behavior?
The endpoint /api/workflow_sessions should return an HTTP 200 OK and an empty array.
What product feature is this related to?
NERM APIs
What are the steps to reproduce the issue?
Shared above, call the API endpoint /api/workflow_sessions for a profile_id that either has had no workflows executed or no workflows with this particular status.
Do you have any other information about your environment that may help?
N/A