Hello, I receive an error while calling the api via the webservice in a survey workflow and also by using an external python script: {"errorMessage":"invalid_client","errorCode":"AUTH_6.0"}I have set the api token as authentication. Any idea what causes the error? Is it possible that I can create an api token, but have no permission to use it?This is the python script (not incl. my ids and token): import requestsdef copy_survey(api_token, data_center, owner_id, template_id): # Construct the URL url = f'https://{data_center}.qualtrics.com/API/v3/survey-definitions' # Headers for the request headers = { 'Authorization': f'Bearer {api_token}', 'Content-Type': 'application/json' } # Data (payload) of the POST request data = { "SurveyName": "Copied Survey", "SurveyDescription": "This is a survey copied from a template.", "ProjectCategory": "Academic", "SurveyOwnerID": owner_id, "SurveyTemplateID": template_id }
Already have an account? Login
Enter your 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.