In this example, we use the
REST Put
Snap to add members to a SnapLogic group.
The following image shows the overall pipeline design used for this
example:
Download this Pipeline
-
Configure the JSON Generator Snap
Configure the JSON Generator Snap to enter the details associated with
the member that you want to add to the target group.
-
Configure the REST Put Snap
Configure the REST Put Snap, enter the account details in the
Account tab, and configure the Snap to send the REST request to the endpoint.
- Service URL: Enter the service URL associated with the group in which
you want to add the member. For information on creating the service URL, see
Update Member List.
- HTTP Header: Add a header specifying that the content type used in
the body of your REST call is
application/json.
-
Execute the pipeline
Save and execute the pipeline. Once the pipeline completes execution, the
REST Put Snap displays details associated with the operation
performed.
- Verify that the member was added successfully to the group in the SnapLogic instance.
- Ensure that the REST account has sufficient permissions to modify the group membership.
- If the operation fails, verify the service URL and request payload configuration.