Rate this page:

HTTP-request

Use this block to create an http-request to an external service. Depending on the selected method, you can either receive data from the service or send it to the service. You can select one of the following methods:

  • GET — Sends data from the resource. Requests to this method can only retrieve data.

  • POST — Sends data to the resource

  • HEAD — Sends a response from the resource

  • DELETE — Allows to delete the specified resource

  • PUT — Allows to replace the resource view with data from the request

  • PATCH — Applies partial modifications to a resource

To create an http-request, do the following:

  1. Connect the block by using the Success port.

  2. Double-click the HTTP-request block.

HTTP request
  1. In the General settings section:
  • Select a method you need from the Method drop-down list.

  • Enter the URL of the service in the URL:port field.

  • Move the Play Audio on dialing toggle to activate audio playback. Select an audio file from the Audio Library drop-down list. Click Upload to upload an audio file from your computer.

  1. In the Request headers section, specify the response headers necessary to request the service:
  • Click Add header.

  • Select the required header from the Header drop-down list.

  • Enter a variable in the Value field.

  1. In the Query parameters section, configure the query parameters:
  • Enter the necessary parameter in the Parameter field.

  • Enter a variable in the Value field.

  1. In the Response data mapping section, configure response parameters. Click Add response and select one of the following settings:
  • Using HTTP response data — Response based on an HTTP-request. Click Get data to configure response data based on scenario data.

  • Using JSON data example — Response based on JSON. Enter data in the JSON data field and click Parse data.

  • Specify data path manually — Enter or select a variable from the Variable drop-down list, enter a path in the Path field. If there is no data for the specified variable, set a value in the If path doesn’t exist field.

Response data mapping
  1. Click Save or Save as template, if needed.