Rest Trigger

With the Rest Trigger, you can execute the integration flow via an external call with one of the HTTP methods.

Here’s how to add it to your canvas and configure your form.

Add the Rest Trigger to the canvas

  1. Click the icon triggersIcon, in the editing menu on the left;

  2. Select the Rest Trigger;

    The flowStartIcon Start is replaced by the trigger as soon as you add it to the canvas;

  3. Configure your form.

To delete the Rest Trigger from the canvas, select it and click the trash can icon button.
Deleting the trigger will disable the Test Mode function.

Configuring the form

  1. Select the trigger on the canvas.

  2. Click the edit icon pencil icon.

  3. Fill in the following fields:

    • Name: enter the trigger name. The name cannot be used more than once in the same integration flow. By default, you will see Rest Trigger.

    • Method: select the HTTP method to be used.

    • Communication Type: define whether the call will be synchronous (SYNC) or asynchronous (ASYNC). By default, SYNC is selected.

      For an asynchronous call, the system will return a 202 response.
    • Header/Key: enter the header parameters. Alphanumeric field that allows special characters (_, . and -), with a limit of 60 characters.

    • Query/Key: enter the parameters for query. Alphanumeric field that allows special characters (_, . and -), with a limit of 60 characters.

      The same key cannot be entered more than once.
  4. If you don’t need to define your payload, click SAVE.

To delete a key in any of the components, click the trash can icon button to the right of the key.
To add a new key, click the + icon.
restTriggerScreen


Payload definition

Mapping the structure of the incoming payload to the Rest Trigger component will make it easier to use the mapped fields in other components of the integration flow. You can edit the payload definitions at any stage of the integration flow creation.

If you have already created a JSON schema, when you click on PAYLOAD DEFINITION, you will see the data already registered.

To configure the structure of the incoming payload, follow the steps below:

  1. Click on PAYLOAD DEFINITION in the top right-hand corner of the Rest Trigger screen.

  2. In the window that opens, you’ll find two columns:

    • JSON SCHEMA: In this column, enter the JSON schema that will define the structure trafficked in the incoming request. There is no character limit. To validate the data format, click on the refresh icon on the right refresh icon.

    • JSON STRUCTURE: This column is read-only. It is used to visualize and validate the format of the data in the JSON SCHEMA column.

  3. To delete an attribute from the payload definition, delete the corresponding line in the JSON schema column.

  4. To confirm the data, click on CONFIRM.

    If the JSON schema is not in the correct format, you will see a message that the JSON schema is incorrect.
  5. Back on the Rest Trigger configuration screen, click on SAVE to save the records.

For more information on the specifications of a JSON schema and how to create a validation file according to your needs, go to JSON SCHEMA (in English).
configuring payload
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]