-
Hello. I have Mosparo set up. When querying the API via SoapUI/Postman the request-submit-token request works fine: When making the check-form-data request I get error for the form data not being valid. Constructed it as in documentation https://documentation.mosparo.io/docs/api/frontend#structure-of-formdata Have also tried passing the array in different ways but no use (get 500). Cant figure out what is invalid in the data. [{"name": "name", "value": "Testing", "fieldPath": "input[text].name"},{"name": "emailAddress","value": "testing@testing.com","fieldPath": "input[email].emailAddress"},{"name": "message", "value": "testmessage", "fieldPath": "textarea.message"}] BR |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi @sukapyx Thank you very much for your question. Can you enable the API debug mode in the project settings (https://documentation.mosparo.io/docs/api/api_debug_mode)? The API should then provide a more detailed explanation for the error in the response. Please post the additional data so I can look into the problem. Kind regards, zepich |
Beta Was this translation helpful? Give feedback.
Hi @sukapyx
Thank you very much!
I've tested your string with SoapUI and had the same issue. The problem is the structure of the
formData
parameter.Generally, it is an object with the two properties
fields
andignoredFields
. These properties are an array with the form data objects in it.Your string contains only the value of the
fields
property but not thefields
andignoredFields
properties. So, the correct string looks like this: