- Posts: 12
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
api.open(password=password) method = "get_question_properties" question_a = {} question_a = api.query(method=method, params=OrderedDict([ ("sSessionKey", api.session_key), ("iSurveyID", '123456'), ("iQuestionID", '12345'), ('aQuestionSettings', 'available_answers') ]))
{'status': 'Error: Invalid questionid'}
DivePeak wrote: You need to remove the:
("iSurveyID", '123456')
For some reason, including the survey id makes it return "invalid questionID".
The request should look like:
{"method":"get_question_properties","params":{"sSessionKey":"yourKey","iQuestionID":571},"id":1}