This API allows you to create form.
The endpoints, properties and code examples are given as follows:
POST/forms
The body should be in JSON format and include the following properties:
Request
id REQUIRED
System generated form ID
-
formTitle REQUIRED
formDescription OPTIONAL
attributes REQUIRED
Response
200
Code 200 implies that the message has been accepted.
{ "id":"1", "formTitle": "New Form", "formDescription": "This is helping text.", "attributes": [ { "key": "first_name", "label": "First Name", "helpText": "This is helping text", "attributeType": "INPUT", "valueType": "String100", "isRequired": true, "categoryOptions": {} }, { "key": "state_name", "label": "State Name", "helpText": "This is helping text", "attributeType": "OPTIONS", "valueType": "StringList", "isRequired": true, "categoryOptions": { "isMultipleChoice": true, "categories": [ { "categoryName": "Category1", "values": [ "Badin", "Chaman", "Balakot" ] } ] } } ] }
Quick Links
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.