API: Is it a server problem?

  • Profile Image
    a.baena
    Asked on January 08, 2020 at 09:03 AM

    I'm trying to update a question via API. I'm having this response:

    {"responseCode":404,"message":"Requested URL (\/form\/200073374049046\/question\/diecisiete) is not available!","content":[],"duration":"20ms","info":"http:\/\/api.jotform.com\/docs"}


    Is it a server problem? I found this post:

    https://www.jotform.com/answers/750801-Form-displaying-an-error-with-404-and-api-jotform-com

    Thank you,

  • Profile Image
    gerardw
    Answered on January 08, 2020 at 09:50 AM

    As far as we can see, there is no server error that has been reported. 

    This is an invalid URL - \/form\/200073374049046\/question\/diecisiete

    If you're trying to access your form, it should be https://form.jotform.com/200073374049046

  • Profile Image
    a.baena
    Answered on January 08, 2020 at 10:31 AM

    Thank you Gerard,

    Glad to hear that everything is working well, then the problem is mine. I'm not trying to access the form, I'm trying to modify questions dynamically through this POST API call:

    http://eu-api.jotform.com/docs/#post-form-id-question-id

    According to the documentation, the URL is:

    https://eu-api.jotform.com/form/{formID}/question/{questionID}?apiKey={apiKey}

    https://eu-api.jotform.com/200073374049046/question/escribaUna4?apiKey=XXXX

    Is that correct?

    Following the documentation, this call successfully shows me all questions:

    http://eu-api.jotform.com/docs/#form-id-questions

    https://eu-api.jotform.com/form/200073374049046/questions?apikey=XXXX

    And the question I'm calling exists....

    What am I doing wrong?

    Thank you very much,

  • Profile Image
    ashwin_d
    Answered on January 08, 2020 at 12:24 PM

    Can you please share the complete POST data which you are using?

    Please note that you can also send your API related question to our API team at api@jotform.com and they will try to help you. 

  • Profile Image
    a.baena
    Answered on January 09, 2020 at 02:50 PM

    SOLVED. quiestionID is NOT the name of the field but an id number, which you can find requesting the list of all questions through this GET call:

    https://eu-api.jotform.com/form/{formID}/questions?apiKey={apiKey}

    Usually a user wouldn't need to waste time with this issues but the link to the referred documentation is broken:

    https://api.jotform.com/docs/properties/index.php

    By the way I emailed the API team several times in the last 3 weeks and never got any replies.

    Thank you Ashwin

  • Profile Image
    FelipeSantana
    Answered on January 09, 2020 at 05:37 PM

    Hello, Ashwin!

    I hope that the support my colleagues have provided for you this far has been satisfactory and I am very glad to know that you were able to solve the issue.

    For future reference, yes the parameters for the formID and questionID are numerical fields and not actual names of the form and questions. Please feel free to reach out if you require any further assistance!

    Also, I will inform our backend team that the API documentation page that you are trying to follow is down. Hopefully, they will be able to bring the page back in a timely manner.