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 API Proxies.
    Screen capture of Apigee Edge with a black box around API Proxies.
  2. Click the API name for which you want to apply the policy.
    Screen capture to select API name to apply the policy

    The Develop page opens.

  3. On the Develop page, click the Develop tab.
    Screen capture of the Develop page.
  4. On the Develop tab under Proxy Endpoints, select PreFlow and click + Step for request.
    Screen capture 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.
    Screen capture 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, click 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>

    A screen capture of the lines described in the text added.
  12. To save the revision, click Save.
    Screen capture for saving the changes.