How to create a Dynamic List question?

This type of question was created for the purpose of populating and updating a multiple choice question type without pausing/archiving the question.

The API documentation can be found here: https://app.swaggerhub.com/apis-docs/Whisp1/whispli-api-tenant/3#/Dynamic%20List/PostChannelDynamicList


How to populate/update the Dynamic List:

When creating a Dynamic list question, you can find a URL on the UI as seen in the example screenshot below. Please note that this is an example only, you will need to access your own Whispli account to get the relevant URL.

️ IMPORTANT NOTE ⚠️

If you’re setting the question type as “Dynamic list” for the first time, make sure to Save the question before doing anything else, otherwise you might encounter some issue when populating the data.

Capture_d_e_cran_2022-07-22_a__17.25.22

 

It is easiest to use a software called Insomnia to activate this feature and the following instructions reflect this. However, if your IT team can do some bespoke development to accommodate sending JSON lists then that can be used in conjunction with this feature as well.

Step 1. Open Insomnia and import the dynamic-list-json file (available upon request from your Customer Success Manager) by clicking on Create, then Import from File. You only need to do this once.

Capture_d_e_cran_2022-07-22_a__17.27.45

 

This is the page you will see after completion of Step 1. 

Capture_d_e_cran_2022-07-22_a__17.29.02

 

TIP: On the left panel, you can create new requests but it will be easier to right click on an existing one and then Duplicate it.

 

️ IMPORTANT NOTE
When duplicating a request, you need to update the URL to use the one you need, but you will also need to update the Authorization “Header”.

 

Step 2. The value token needs to be “Bearer <token>”. This will be listed in the URL. On the middle panel of the above screenshot, you can see the JSON data used to populate or update a dynamic list. The URL found earlier in the question’s UI is set at the POST field.

 

Capture_d_e_cran_2022-07-22_a__17.31.10

Step 3. Add all the multiple-choice options to the JSON data. Once your JSON data is good to go, click on the Send button.
In order to update the dynamic list options, you will need to update the JSON data and click Send again.