Check out the LimeSurvey source code on GitHub!

remotecontrol add_group method not working

More
2 years 10 months ago #107042 by wiherek
I want to add a question group through LimeSurvey's remotecontrol2 API. I can add survey, list surveys etc., but I have an issue with creating a question group.

I firsth authenticate with get_session_id method, then I post a JSON to admin/remotecontrol

{
"method":"add_group",
"params":{
"sSessionKey":"j6qf7hwjziwvia8xmhm93rriu8k94grb",
"iSurveyID":"333",
"sGroupTitle":"mytitle",
"sGroupDescription":"mydescription"
},
"id":1
}

But I only get this in result:

{
"id": 1,
"result": 7,
"error": null
}

The question group is not added. Is there a problem with my code or is it a bug in LimeSurvey?

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form