In this article

Overview 

You can create and manage multiple versions of your APIs. A version of an API contains SnapLogic assets such as Pipelines, Tasks, and Open API Specification files. Clicking an API on the API Details page opens the Version Details page, where you can view details about the version and add API policies. You can also search through assets in a Version and view Permission sets.

When you are viewing an API version, you can navigate to the API Details and API Management landing page by clicking the respective folders in the folder path.

The following example illustrates the path of an API version:

API Manager - /apim/API_Test/1.1

From this view, you can click on any component in the path to navigate to that level of the API Management hierarchy:

Prerequisites

API Manager

You can navigate to the API Manager console by clicking Manager > API Management > API Manager.

APIM Manager

Creating an API Version Using Design First

  1. Navigate to API Management > API Manager, and click the target API to display the API Details page.

  2. Click the Versions tab, then click (blue star)  to display the Create Version dialog window.

  3. In the Create API version dialog window, import the API Specification by selecting one of the following options, then click Continue:

  4. Select/deselect the Import Configuration options, then click Import and Continue.
    The options for import are selected by default.

  5. Enter information about your Version, then click Create.

    You must enter a name and Snaplex. You can also change the version from this dialog window, and therefore create another version of the API.

    After you create a version of an API, the Version asset is displayed on the Versions Details page. You can view information about the assets used in the API version by clicking it.

Creating an API Version from Existing Project Assets

  1. Navigate to API Management > API Manager, and click the target API to display the API Details page.

  2. Click the Versions tab, then click  to display the Create Version dialog window.

  3. In the Create API version dialog window, select Create from Existing Project, then click Continue:

  4. In the Create API Version-Select Assets dialog window, select/deselect the assets from the Project to use in the API Version, then click Import and Continue.
    An Asset selected at the root level also imports the leaf-level Assets.

  5. Enter information about your API Version, then click Create.

    You must enter a name and Snaplex. You can also change the version from this dialog window, and therefore create another version of the API.

    After you create a version of an API, the Version asset is displayed on the Versions Details page. You can view information about the assets used in the API version by clicking it.

Creating an Empty API Version

  1. Navigate to API Management > API Manager, and click the target API to display the API Details page.

  2. Click the Versions tab, then click  to display the Create Version dialog window.

  3. In the Create API version dialog window, select Create Empty API Version click Continue.

  4. Enter information about your Version, then click Create.

    You must enter a name and Snaplex. You can also change the version from this dialog window, and therefore create another version of the API.

    After you create a version of an API, the Version asset is displayed on the Versions Details page. You can view information about the assets used in the API version by clicking it.

Edit API Version

You can edit the API Version with the below steps:

  1. Navigate to API Manager > API > Versions:

    version-api.png

     

  2. Click the Version you want to edit:

    versiondetails-api.png
  3. Click Edit Details to update the Version:

    editdetails-versiondetails-api.png
  4. Click Save. A message “Version details has been updated successfully” displays in the UI.

note
  • You can only edit the Version of the unpublished APIs.

  • Unpublish the API to edit the API Version.

  • Special characters such as |, <, >, [, ], {, },#, ?, /, and \. cannot be used.

  • You can only edit the Version of the unpublished APIs.

  • Unpublish the API to edit the API Version.

  • Special characters such as |, <, >, [, ], {, },#, ?, /, and \. cannot be used.

Deleting an API version

You must delete all of the Assets in a Version before you can delete the Version.

  1. Navigate to API Management > API Manager, click the target API to display the API details page.

  2. Click the Versions tab and point your cursor on the target Version.
    The delete icon is displayed.

  3. Click  to delete the API Version, then click Delete on the confirmation prompt.

The API Version is deleted from the API Manager console.

Managing API Version Assets

You can manage the following SnapLogic assets in your API Version on the Assets tab:

Clicking an asset opens up a dropdown that contains the same options in the Assets table view in Manager.

note

In the Assets tab of an API Version, these asset components - Task name, Pipeline, Pipeline parameters, and Task run policy - can no longer be edited when referenced by a published API. You must unpublish the API to modify any of its assets.

In the Assets tab of an API Version, these asset components - Task name, Pipeline, Pipeline parameters, and Task run policy - can no longer be edited when referenced by a published API. You must unpublish the API to modify any of its assets.

Adding an Asset

  1. In Manager > API Management > API Manager, navigate to the target version and click to display the Version Details page.

  2. Click (blue star) to open the assets menu

  3. Select one of the following choices:

  4. Complete the required dialogs associated with the type of Asset.

Moving an Asset

You can move your API version Assets from one version to another version in the same API or to another version in a different API.

Snap Packs cannot be moved as Assets.

To move an Asset:

  1. In Manager > API Management > API Manager, navigate to the target version and click to display the Version Details page.

  2. Click the Assets tab.

    You can filter by Asset type by clicking one of the following pills.

  3. Click(blue star) to display the APIM project tree, then select the destination API version.

  4. Click Move on the Move Asset(s) confirmation prompt.

  5. If one or more Assets with the same name exist in the API version, the Error occurred while moving Asset(s) prompt appears.

    Choose one of the following options:

Select Apply to all to skip moving or to overwrite the Assets in the destination version.

Copying an Asset

You cannot copy Files into the same API Version. If you copy Pipelines, Tasks, or Account to the same API Version, then the copied Assets overwrite the original Asset.

You can copy an asset

  1. To copy from assets from Manager, navigate to the target project folder, select your assets, and click (blue star) to copy:

    1. In the Copy Projects Assets dialog, select the target API Versions:

      apim-copy-assets-manager.png

    2. Click Continue.

    3. Select Asset types, then click Copy.

      copy-project-assets.png


  2. To copy assets from an existing API Version, navigate to the target API Version and click it to display the Version Details page.

    1. Click the Assets tab:

    2. Select the target assets and click the (blue star) to copy. You cannot copy Directories or Snap Packs.

    3. When the Copy Assets dialog appears, select a destination API version. If Files are selected, the Destination picker does not display the same folder:

    4. Click Copy.

  3. If one or more Assets with the same name exist in the API version, the Error occurred while copying Asset(s) dialog appears.

    Choose one of the following options:

Select Apply to all to skip moving or to overwrite the Assets in the destination Version.

When Pipelines are copied to the same destination Version, the copied Pipeline is added with the following name:

Copy of pipeline_name

The original Pipeline remains in the destination Version.

Deleting an Asset

WARNING: Deleting assets of a published API can adversely affect its endpoints and any subscriptions to it. In addition, unexpected errors can occur when running pipelines that depend on those assets.

  1. In Manager > API Management > API Manager, navigate to the target API Version and click it to display the Version Details page.

  2. Click the Assets tab.

  3. Select the Asset to delete and click the trash icon ( (blue star) ). You can select multiple Version Assets.

    The Delete confirmation message appears:

  4. Click Delete.

  5. Verify the deleted Assets by navigating to the Manager Recycle Bin for your Org:

Changing the Snaplex of a Task inside an Unpublished API

You can change the Snaplex a Task runs on if the API Version is unpublished. You cannot change the Snaplex of a Task if the API is already published.

  1. In Manager > API Management > API Manager, navigate to the target API Version and click it to display the Version Details page.

  2. Click the Assets tab.

  3. Click the target Task to open the Update Task dialog.

  4. In the Snaplex field, click (blue star) to open the dropdown list of Snaplexes available in the Org’s global shared folder:

  5. Select the target Snaplex and click Update.

Editing the Run Policy for a Task inside a Version

You can open the Update Task dialog from the Version > Assets tab of an API to change its configuration. You can also change the Run Policy.

API Manager does not support Scheduled Tasks. When you edit a Task in the Assets tab, the Update Dialog displays only Triggered and Ultra as Run Policy selections.

  1. In Manager > API Management > API Manager, navigate to the target API Version and click it to display the Version Details page.

  2. Click the Assets tab.

  3. Click on the target Task to open the Update Task dialog.

  4. In the Run Policy field, click (blue star) to select a different Task type:

    Update task dialog

Downloading a Specification File

You can download the specification file from the Assets tab. Both JSON and YAML file formats are supported for download.

  1. In Manager > API Management > API Manager, navigate to the target API Version and click it to display the Version Details page.

  2. Click the Assets tab.

  3. Point the cursor as the File, and click (blue star) to open the dropdown menu.

  4. Select Download.

APIM Asset Tracking with Git

When your Org is integrated with Git, you can access the same set of functionalities for APIM version assets, and the Version is treated as the Project folder.

Supported Git Operations with Versions

In the Versions tab, you can manage your Versions similarly to Projects in Manager.

The following GIT operations are supported in Versions:

Supported Git Operations with Version Assets

In the Assets tab of your API Versions, you can manage Assets similarly to Project Assets in Manager. For example, APIM Assets are tracked by the Git repository and Git status, as shown in the following image.

When you select an Asset or point and click on it, the Git options menu appears:

You can perform the following actions from this menu: