Validation against API submitted results

More
3 years 1 month ago #122662 by trumpcard21
trumpcard21 created the topic: Validation against API submitted results
Hi,

I was doing some testing today and it appears that when a result is submitted against the API using add_result the validation isn't being triggered. The API always replies as if the entire result was stored, even if mandatory fields are missing, if the data is improper, and results are not stored against the database. So long as the permissions and session key are valid and the JSON isn't malformed it will appear to succeed. Am I correct that there isn't any way to create a survey with validation being performed against API calls?

Thanks.

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #122671 by DenisChenu
DenisChenu replied the topic: Validation against API submitted results
Hi,

WIth API call : no validation is done, like in "edit answers" if i don't make an error.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!