Python code snippet for the update method (update response API) | XM Community
Skip to main content
Solved

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

  • December 3, 2019
  • 2 replies
  • 297 views

Forum|alt.badge.img
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

Best answer by KeirJ

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!

2 replies

KeirJ
QPN Level 2 ●●
Forum|alt.badge.img+7
  • QPN Level 2 ●●
  • Answer
  • December 13, 2019
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!

Forum|alt.badge.img
  • Author
  • December 16, 2019
Thanks a lot for the response, much appreciated!