Seems to be an permission issue based that this feature is not shown.
Some metrics (e.g. custom metrics) also do not display if you set them in one language, but then change your system language. You need to change the profile language back in order to see them.
thanks again, it worked. There was one dot in your code, creating an error. I adjusted the code with some error handling and took out some stuff: ##<< import requestsimport jsondef get_survey(api_token, data_center, survey_id): # Build the URL for retrieving a survey definition base_url = f"https://{data_center}.qualtrics.com/API/v3/surveys/{survey_id}" headers = { "Content-Type": "application/json", "X-API-TOKEN": api_token } # Make the GET request response = requests.get(base_url, headers=headers) print(f"GET Survey Response: {response.text}") # Detailed logging of the API response if response.status_code == 200: json_response = json.loads(response.text) print("Export status: ", json_response.get('meta', {}).get('httpStatus', 'Unknown status')) return json_response else: print(f"Error fetching survey: HTTP {response.status_code}") return Nonedef import_survey(api_token, data_center, survey_name, qsf):
Thanks. Indeed it works only via qsf file. But my api is still not running. Need to check if there are company restrictions.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.