Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Create a new survey using the API

  • orri.eiriksson
  • orri.eiriksson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 months 2 hours ago #262720 by orri.eiriksson
Create a new survey using the API was created by orri.eiriksson
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5.4
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template: Any
==================
Hello all,
I wanted to know if it's possible to create a new survey from scratch using only the API.  I don't see any direct calls for it, except perhaps the import_survey method ( api.limesurvey.org/classes/remotecontrol...method_import_survey ). Incidentally, I can't find any documentation on the "survey lsa archive" one might be able to use for that.

Can anyone help me out?

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 months 1 hour ago #262771 by holch
Replied by holch on topic Create a new survey using the API
LSA stands for "Limesurvey Survey Archive". This not only contains the structure of a survey, but also responses, etc.

So for creating a new survey, I think it makes more sense to look into LSS files (Limesurvey Survey Structure).

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 months 4 weeks ago #262961 by DenisChenu
Replied by DenisChenu on topic Create a new survey using the API
Maybe txt/tsv format is more easy to construct

I have to create a bug report, but new format exported are really more complex than previopus one …
1. You can delete the 2 1st coluln except for quota
2. You can delete the C class line (condition) : then condition move to expression.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • orri.eiriksson
  • orri.eiriksson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 4 weeks ago #262978 by orri.eiriksson
Replied by orri.eiriksson on topic Create a new survey using the API

Maybe txt/tsv format is more easy to construct
 
Do you know where I can find information about creating a survey in txt/csv format? My company is looking into API integration, and I'm exploring Lime as a possibility. It will only work for us if we can create and manage the survey automatically, i.e. without needing any manual steps.

Please Log in to join the conversation.

  • orri.eiriksson
  • orri.eiriksson's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 months 4 weeks ago #262979 by orri.eiriksson
Replied by orri.eiriksson on topic Create a new survey using the API

So for creating a new survey, I think it makes more sense to look into LSS files (Limesurvey Survey Structure).
I tried exporting a manually created survey to see what that looks like, and it seems that the LSS is some sort of awful, obfuscated XML format, which I can find no documentation for. Are there any tools to help one create this format?

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 months 4 weeks ago #262981 by DenisChenu
Replied by DenisChenu on topic Create a new survey using the API

Maybe txt/tsv format is more easy to construct

 
Do you know where I can find information about creating a survey in txt/csv format? My company is looking into API integration, and I'm exploring Lime as a possibility. It will only work for us if we can create and manage the survey automatically, i.e. without needing any manual steps.
 
www.limesurvey.org/manual/Display/Export...values_format_(.txt)

After export : too have a more simple file

1. Delete the 1st to column
2. Delete line with Class C

The 1st 2 column are here only for quota and make it complex to understand for all other part
The C line are here for condition, remove it make usage of Expression Manager : really more easy to update via Calc

You can use the export file from 3.X version to have a more easy to understand file.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose