- Posts: 3
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
2 weeks 3 days 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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11710
- Thank you received: 2756
2 weeks 3 days ago #262771
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
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).
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
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13714
- Thank you received: 2502
2 weeks 2 days ago #262961
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
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.
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 service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.
- orri.eiriksson
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
2 weeks 2 days ago #262978
by orri.eiriksson
Replied by orri.eiriksson on topic Create a new survey using the API
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.Maybe txt/tsv format is more easy to construct
Please Log in to join the conversation.
- orri.eiriksson
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
2 weeks 2 days ago #262979
by orri.eiriksson
Replied by orri.eiriksson on topic Create a new survey using the API
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?So for creating a new survey, I think it makes more sense to look into LSS files (Limesurvey Survey Structure).
Please Log in to join the conversation.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13714
- Thank you received: 2502
2 weeks 2 days ago #262981
by DenisChenu
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 service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Create a new survey using the API
manual.limesurvey.org/Display/Export_sur...values_format_(.txt)
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.Maybe txt/tsv format is more easy to construct
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 service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.