Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

[ {

Form or account not found.

The following sub codes may be returned:

Form not found

Endpoint ID:

9001

Method:

URL:

POST /user/content/

  

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:

Code Block
titleExample
 

 

  

Request body:

Sample request

Code Block
titleExample
{
   "tags": [ "tag1", "tag2" ],                 // required - at least one tag must be present.
                         "fieldID": 87,       "value": "This is a text field"    },    { //    Tags must "fieldID": 88be url-safe, with this RegEx:
   "value": 134    },    {       "fieldID": 89,       "value": [ 136, 138 ]    } ]

Request body:

JSON data with same JSON array that was received

Code Block
titleExample
[    {       "fieldID": 87,//    [a-zA-Z]+[a-zA-Z0-9-_]*
   "valuecontentType": "This is a text field"text/html",               },  // optional {- defaults to "text/html"
   "fieldIDcontent": 88 "base64 encoded content string", // required
    "value": 134 6.8,                           },    {// optional - decimal
   "fieldIDactiveFrom": 89,
      "value": [ 136, 138 ]
   }
]

Status codes:

201

Form data submitted successfully

 

303

Form data already submitted for this account

 400 Invalid data: field was not recognized
 404
404.1User not found
404.2External user could not be found
404.4
"2014-01-01T01:00Z",          // optional - ISO UTC date
   "activeTo": "2014-03-25T23:00Z"             // optional - ISO UTC date
}

Response body:

Response body on success.

Code Block
titleExample
{
   "contentID": 4567
}

Status codes:

201

Content created successfully.