Create and Delete an Account in SnapLogic Using REST Snaps

This example pipeline demonstrates how to create an account in SnapLogic and delete it using REST Snaps.

Prerequisites: A valid Accout


Create and Delete Account pipeline

Initially, we configure the JSON Generator Snap where we mention the project name testDeleteProject111.


JSON Generator Snap configuration

Then, we configure the REST Post Snap to create the project in SnapLogic using the account-name string of your choice.

  • We use the SnapLogic URL for creating the project in your instance.
  • We use $projectName in the HTTP entity field to indicate that we want to use the string coming from the upstream Snap.

REST Post Snap configuration

We click the Account tab and select the account that we want to use with Snap.


REST Post Snap configuration with account selection

When we validate the Snap, it creates a project in the SnapLogic instance. The Snap displays the following output:


REST Post Snap output displaying project ID

The id field lists the unique identifier of the new project created by Snap.

We now want to delete the project that we just created. To do so, we use a REST Delete Snap for this task.


REST Delete Snap configuration for deleting the project

The project you created is deleted from the SnapLogic instance. Upon validation, the REST Delete Snap displays the following output:


REST Delete Snap output confirming project deletion

  1. Ensure that you have a valid SnapLogic account and project creation permissions.
  2. Verify that the REST Post Snap successfully creates a project before running the REST Delete Snap.
  3. Confirm that the REST Delete Snap output indicates successful deletion.