How come this setting causes a 400 error when launching a flow via the REST API from my Node.js Lambda handler? I am sending a minimal payload with the flowId and a single variable, but the response insists the parameter is invalid even though the flow exists and is published.
The request looks like this:
POST /api/v2/flows/executions
{
"flowId": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
"variables": [
{ "name": "source", "value": "api_test" }
]
}
I have verified the OAuth token has the flow:execute scope. The flow runs fine manually in the UI. Is there a strict schema requirement for the variables array that I am missing?