URL : api/get-form-data

Method : GET

Query Parameters :

Parameter Type Possible values Optional/Required Description
category string ticket, user, organisation Required It is the category of the form which  has to be fetched

Response :

{

  "success":true,

  "data":{

"form_fields":[

        {

           "id":1,

"title":"title",

           "pattern":"",//any regex pattern

"sort_order":1,

           "type":"email",

           "required_for_agent":1,

           "required_for_user":1,

           "display_for_agent":1,

           "display_for_user":1,

           "default":1,

           "media_option":"0",

           "api_endpoint":null,



           "labels_for_agent":[

              {

"id":1,

                 "language":"en",

                 "label":"Requester"

              }

           ],

           "labels_for_user":[

              {

"id":1,

"language":"en",

                 "label":"Requester"

              }

"labels_for_validation":[

              {

     "id":1,

"language":"en",

                 "label":"Requester"

              }

           ],



          "options":[            

{

     "id":null,

"labels":[//option labels

              {

                "id":1,//null if a new field is added

"language":"en",

                 "label":"Requester"

              }

            ],

           

           "nodes":[]//in case of nested fields add the

same document as above here



}



]

        }

         

     ]

 

Leave a Reply

Your email address will not be published. Required fields are marked *