The POST /environments/{environmentId}/flowDefinitions operation creates a new flow definition resource in the environment identified by its ID in the request URL. This agreement consent flow definition includes steps to prompt for user consent and to complete the flow.