Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

Submit form data for a user

Endpoint ID:

8001

Method:

URL:

POST /user/dp-key/{dp-key}/form/{form-id}
POST /user/ext-key/{ext-key}/{ext-type}/form/{form-id} 

 

dp-key

dialogportal™ master key that uniquely identifies the account to submit a form for

 

ext-key

External key that uniquely identifies the account to submit a form for

 ext-typeType of external key

 

form-id

Numeric value that identifies the form

Request body:

A JSON array of form field values. The value data types depend on the field types - text strings for "Text" fields, integer options for "Singlechoice" fields and arrays of integer options for "Multichoice" fields.

Endpoint 8006: Enumerate fields can be used to determine the fields and datatypes required for the form.

Example
[
   {
      "fieldID": 87,
      "value": "This is a text field"
   },
   {
      "fieldID": 88,
      "value": 134
   },
   {
      "fieldID": 89,
      "value": [ 136, 138 ]
   }
]

Request body:

JSON data with same JSON array that was received

Example
[
   {
      "fieldID": 87,
      "value": "This is a text field"
   },
   {
      "fieldID": 88,
      "value": 134
   },
   {
      "fieldID": 89,
      "value": [ 136, 138 ]
   }
]

Status codes:

201

Submit Form Data successfully

 

303

Form already Submitted.

 400 Invalid Data: Field was not recognized
 404

Not found

The following sub codes may be returned:

404.1User not found
404.2External user could not be found
404.4Form Not Found


 




  • No labels