Ziggy - Services and Product Help

REST, CSV and SFTP

REST, CSV, SFTP

The above Flow show the following.

  • A call to a REST API is made.

  • It puts the response data onto the edge.

  • The edge contains some mapping rules so the response data can be mapped to a new format

  • This new data is passed to the SFTP Block which uploads the results to a file.

Structure mapping

It's worth showing how the edge data is mapped. You should also refer to Structures and Mappings for a deeper dive.

In the Flow at the top of the page, you'll see that the edge bubble is green and has a flag symbol.

  • '10' indicates that there are 10 records being passed along the edge when it ran.

  • Green indicates that there is validation being performed against a Structure.

  • The flag indicates that the edge data is being mapped to another Structure.

If you click on the edge bubble, you'll see a dialog with four tabs.

The data that is output from the edge after the mapping has been done

Alt text

The Structure expected for data arriving on the edge. It is using the Structure **Game of Thrones Characters**, which is expected to be an array. This shows a powerful validation capability using the Zod syntax. Pressing **Create Structure from data** will use AI to generate this for you based on data that is found on the edge.

Alt text

This shows how the Structure **GOT CSV Header** has been chosen as the edge output format. Below this is the mapping from the source Structure to the Target structure. Pressing the **Guess mapping** button will use AI to have a go at performing the mapping for you.

Alt text
Last modified: 10 February 2025