Note:

The following steps are the same for Flow Callout for both request and response.

  1. Sign on to your Apigee Edge account and select the API Proxy.
    Screenshot to select API Proxies
  2. Click the API name for which you want to apply the policy.
    Screenshot to select API name to apply the policy
    The Develop page opens.
  3. On the Develop page, click the Develop tab.
    Screenshot of Develop page
  4. On the Develop tab, under Proxy Endpoints, select PreFlow, and click + Step for request.
    Screenshot to select Preflow and add step
    The Add Step page opens.
  5. On the Add Step page, select Flow Callout.
  6. In the Shared Flow list, select the Request rule and click Add.
    Screenshot to select request from shared flow list
  7. On the Develop tab, under Proxy Endpoints, select PreFlow, and click+ Step for response.
    Screenshot for adding a response
    The Add Step page opens.
  8. On the Add Step page, select Flow Callout.
  9. In the Shared Flow list, select the Response rule and click Add.
    Screenshot to select response rule
    The request and response rules are added.
  10. Click Save.
    Screenshot to save request and response rules
  11. Click default and enter the following lines in the <HTTPTargetConnection> tag.
    <Properties>
                <Property name="success.codes">1xx,2xx,3xx,4xx,5xx</Property>
    </Properties>


  12. Save the revision.
    Screenshot for saving the changes