Python code snippet for the update method (update response API) | XM Community
Solved

Python code snippet for the update method (update response API)

  • 3 December 2019
  • 2 replies
  • 175 views

Badge
Hi there,

We are using the update response API (https://www.qualtrics.com/community/categories/qualtrics-api-developer-corner) to correct a wrongly recorded embedded data (from the URL) before pulling this data into our data warehouse.

We are wondering if anyone's had experience with this API before, and has the code snippet in Python?

Many thanks in advance!
Joanne
icon

Best answer by KeirJ 13 December 2019, 21:31

View original

2 replies

Userlevel 4
Badge +7
Hi @joanne_ong - attached, please see a python snippet I've used in the past to update responses. You'll need to make some minor updates based on specifics for your use-case.

The snippet assumes you've prepared a .CSV file with a column named 'ResponseId' and also subsequent columns with the names of the embedded data fields you want to update.

Please use caution and test thoroughly when mass-updating responses using the API!
Badge
Thanks a lot for the response, much appreciated!

Leave a Reply