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
.jpg)
Initially, we configure the JSON Generator Snap where we mention the project name testDeleteProject111.
.jpg)
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
$projectNamein the HTTP entity field to indicate that we want to use the string coming from the upstream Snap.
.jpg)
We click the Account tab and select the account that we want to use with Snap.
.jpg)
When we validate the Snap, it creates a project in the SnapLogic instance. The Snap displays the following output:
.jpg)
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.
.jpg)
The project you created is deleted from the SnapLogic instance. Upon validation, the REST Delete Snap displays the following output:
.jpg)
- Ensure that you have a valid SnapLogic account and project creation permissions.
- Verify that the REST Post Snap successfully creates a project before running the REST Delete Snap.
- Confirm that the REST Delete Snap output indicates successful deletion.