Update responses by API | XM Community
Skip to main content

Update responses by API

  • September 15, 2022
  • 4 replies
  • 1447 views

jcgallont
Level 2 ●●
Forum|alt.badge.img+13

Hello
I am trying to update my responses via API, because after Qualtrics gets the response I need to add some embedded data from my data lake.
I saw this API call https://api.qualtrics.com/daed82306b1ea-update-response , but is not clear for me how do I get the response ID in the api call?
image.png

4 replies

jcgallont
Level 2 ●●
Forum|alt.badge.img+13
  • Author
  • Level 2 ●●
  • September 15, 2022

Forum|alt.badge.img
  • January 20, 2023

ArunDubey
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+41
  • QPN Level 8 ●●●●●●●●
  • January 20, 2023

I think it's too old Question to response. But I'm responding here for others' help too. See, there are two ways,
1) without API: if you have specific number of list to add in embedded field respective to captured responses. E.g. want to add 4 regions or 9 regions respective to captured states, or want to add age group respective to captured ages. Then you can under Data & Analysis tab >> Field Editor >> Create Field >> Bucketing, this will help you to create new field specific to fixed list of Age and Age group, state and region etc. https://www.qualtrics.com/support/survey-platform/data-and-analysis-module/data/add-new-fields/bucketing-variable-creation/
2) with the help of API:
you can create PHP or python file to run on web. Here is an example of PHP code.
$r_id=array("R_responseID1","R_responseID2","R_responseID3");
$arr_length=count($r_id);
for($i=0;$i<$arr_lenght;$i++)
{
$url="https://ca1.qualtrics.com/API/v3/responses/".$r_id[$i];
}
Now you can run the post man to get the curl code and put the values into another array to punch the data respective to response ID. Save your file as PHP and upload it in FTP folder to run it on browser.


Forum|alt.badge.img+3
  • QPN Level 2 ●●
  • November 18, 2024

There is a way to have a standalone workflow to update responses when a ticket is created (I don’t want to configure several workflows). I can do it easily when I manually input the survey ID.

I’m bringing the survey ID as ticket data, and I also tried to create an API to fetch that information, but it doesn’t work.