Replacing An App in a Journey With the API﻿

Overview

This documentation is for those who want to upload newer versions of an app for a journey. It involves uploading a new app and copying over the steps and rules of a previous journey to the newer version of the app. The text in red indicates the parts of the cURL code snippets that need to be changed.

Obtain the New App ID: After you've uploaded the new app file (Upload App Files With API) make the GET call to https://api.observepoint.com/v2/apps. Make sure that you have the proper ObservePoint API key for your account in the API environment.

This call returns a list of all the apps uploaded to your account. Check to see if the new app you uploaded is contained in this list, and locate its id. You'll need this later.

Obtain the Journey ID: Make a second GET call to https://api.observepoint.com/v2/apps/{appId}/app-journeys. The {appId} is the id of the old app that you want to replace with the new app you uploaded. Obtain this from step 1, where the GET call retrieved all of the apps for the account. All the journeys for that specific appId are displayed. Locate the id for the Journey that you wish to add the newly uploaded app to.

Replace the Old App: Make a PUT call to https://api.observepoint.com/v2/app-journeys/{appJourneyId}. For the fields below, reference the settings found from step 2 for the specific journey, and copy them over. Make sure that for appId you use the id found in step 1.