The API response has changed

  • Profile Image
    darrensher
    Asked on December 14, 2020 at 05:39 AM

    Hi Team,


    Re: Form id: 203025193522344

    Submission Id: 4837511398221339941 + all old and new submissions which we have not changed the "imported" value to "0" aftre processing


    Since Friday 11/12 seems the API response has changed.

    All the submissions used to have a default "imported" value equal to "0", which is not the case anymore. The value of the key related to the "imported" value now looks as per below. So it doesn't have the "answer" key with the default value of "0"


     "48": { "maxValue": "1", "name": "imported", "order": "21", "text": "Imported", "type": "control_number" }, 


    Can you please advise if this is a permanent change or a bug on the Jotform side, thus we know if there are any changes required to our processing app


    Thank you in advance


    Kind regards

    Dragomir

  • Profile Image
    Sam_G
    Answered on December 14, 2020 at 07:07 AM

    Hi Dragomir,

    Thank you for contacting Support.

    May we confirm what API you're using?

    Is it import submission or get submission?

    You may also contact our API team at api@jotform.com for further information.

  • Profile Image
    darrensher
    Answered on December 14, 2020 at 07:15 AM

    Hi Sam


    The endpoint we've been using is `/form/${formId}/submissions`

    We haven't done any changes and seems the response shape was changed on your side.


    Kind regards

    Dragomir

  • Profile Image
    Richie_P
    Answered on December 14, 2020 at 07:58 AM

    I am able to replicate the value of the number field showing 1 instead of 0.

    1607950427_5fd7605b464ed_3.png

    Although the number field Imported doesn't have a value or was null, it shows max value of 1 which the limit entry was set to.

    1607950606_5fd7610e27c9c_4.png

    When I changes the limit entry maximum value to 2, the max value also has been updated.

    1607950646_5fd76136c24e9_4.png

    Hope this information helps.

    If you need further assistance, let us know.

  • Profile Image
    darrensher
    Answered on December 14, 2020 at 08:38 AM

    Hi Richi,

    Thanks for your reply, but I was after something else.

    The submission key related to imported value is number 48 as per below (this how it looks now)

     "48": { "maxValue": "1", "name": "imported", "order": "21", "text": "Imported", "type": "control_number" }, 


    But until today the imported key value used to have an additional key called "answer" as per below (the last key, default value was set to "0").

     "48": { "maxValue": "1", "name": "imported", "order": "21", "text": "Imported", "type": "control_number", "answer": "0" . },


    Can you please advise is this change in your api response permanent or this is a bug that is going to be fixed?

    As you can see below in the form wth "imported" key value is set to "0", but the API diesn't seem to add the "answer" key with default vlaue "0"

    1607953598_5fd76cbe63ca7_

    Kind regards

    Dragomir


  • Profile Image
    Rehan_F
    Answered on December 14, 2020 at 09:08 AM

    Unfortunately, we don't have this information available. The API team at api@jotform.com will be able to give you an appropriate answer.

    Thanks