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,
- From the dataflow canvas, hover on the Trigger Block and click on the edit icon.
- In the API Method field, select the HTTP method (GET, POST, or PUT).
- In the API url field, enter the unique endpoint for the dataflow.
- Click Done.

Configuring Trigger Block
For example, the below API cURL is created based on the configuration provided in the above image (API method- POST
and 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"
}'