Back to top

createSurvey

createSurvey – creates a new survey
request_method: POST
 
Parameters:

  • action=createSurvey

 
POST field:

{
"naslov_vprasalnika":"New survey title...",
"survey_type ":"0", // Survey type  (0=voting, 1=survey)
"uvod":"Intro text...",
"zakljucek":" Conclusion text...",
"vprasanja":{
{"besedilo_vprasanja":" Question 1 text",
"mesto_vprasanja":"2",
"vrsta_vprasanja":"2", // 0=radio, 1=checkbox, 2=text
"velikost_polja":"10", // Optional for text questions
"reminder":0, //reminder 0=off, 1=only warning, 2=mandatory
"other":1, //optional for categories – 0= 'other' off, 1=on
"Odgovori":{"odgovor1"},{"odgovor2"},.https://www.1ka.si //optional for categories
},
{"besedilo_vprasanja":" Question 1 text ",
"mesto_vprasanja":"2",...}
}
}

Response example:

{"url":"[url ankete]","note":"Anketa uspe\u0161no ustvarjena"}