The POST /environments/{environmentId}/flowDefinitions operation creates a new flow definition resource in the environment identified by its ID in the request URL. This basic flow definition includes a trigger that specifies only one step definition, which immediately completes the flow.