Exporting and Importing API Sets
You can export and import API sets and their underlying components from within Business Central. This is useful if you build an API set that you want to use in another environment. It is also helpful if you want to create a new API set that is largely similar to an existing API set; rather than start from scratch, you can export the existing API set, then make any necessary changes before importing it back into Business Central.
To export an API set
1. With the relevant API set selected on the API Sets page, choose the Export action in the ribbon.
2. On the Export Data FastTab of the Export API Configuration page, choose the API set records that you want to include as part of the export.
3. Choose the Export action in the ribbon.
The API Engine will export the API set’s data to a JSON-formatted text file. This file can then be imported into another Business Central environment (or modified and then imported back into the original Business Central environment).
To import an API set
1. On the API Sets page, choose the Import action in the ribbon.
2. Navigate to the location of the file you want to import, then select the file and choose the Open button.
The API Engine will import the selected file’s data and create a new API set, along with any underlying records.
Next: Defining API Functions