If I fetch a list of surveys from the API (/survey), I’ll get a lot of objects which has type ‘Standard Survey’. If I try to create a survey with that type, I’ll get a 400 – Bad request error. I can, however, create a survey with the type ‘survey’ – this then returns an object with an empty type field.
Is there any chance the two will be aligned in this or future versions of the API? It makes it horribly difficult to consume the API.
In the meantime, is there any documentation as to what values are acceptable for the different fields?
I the return for the survey object changed a bit with the v5 API. I can definitely pass along this feedback to our development team.
As far as possible values you can find our API documentation here:
Under each version you there is documentation for each object; these will have all possible values for each object.
The Return Formats and Fields should help you better understand what is returned.
I hope this helps!
The SurveyGizmo Team