Trigger Block

The Trigger Block is the starting point of the dataflow, where you can configure the dataflow with the API method type (e.g., POST, GET) and a custom API endpoint.

Once configured, the API cURL is created based on the configuration here. You can use either the API cURL or the endpoint to invoke the dataflow. The trigger block appears automatically after you create the dataflow.

Configuring the Trigger Block

To configure the block,

  1. From the dataflow canvas, hover on the Trigger Block and click on the edit icon.
  2. In the API Method field, select the HTTP method (GET, POST, or PUT).
  3. In the API url field, enter the unique endpoint for the dataflow.
  4. Click Done.
Configuring Trigger Block

Configuring Trigger Block

For example, the below API cURL is created based on the configuration provided in the above image (API method- POSTand the API url - tierForceUpgrade).


            curl --location --request POST 'https://apac.api.capillarytech.com/x/neo/tierForceUpgrade' \
            --header 'Content-Type: application/json' \
            --header 'x-cap-api-oauth-token: {token}' \
            --header 'x-cap-neo-test-variant-id: 1a0c38d9-be54-4592-9472-d73de8011cbd' \
            --header 'x-cap-neo-dag-scope: org' 
--data-raw '{
      "data": "add your json object here"
      }'