Update Form
This API allows you to update an existing form.
The endpoints, properties and code examples are given as follows:
PUT/forms
The body should be in JSON format and include the following properties:
Request
Parameter | Description | Type | Properties |
---|---|---|---|
formTitle REQUIRED | Name of the form | String | - |
formDescription OPTIONAL | Description of the form | String | - |
attributes REQUIRED | Attributes are fields (key-value) pairs required in the form. More than one field can be added separated the comma. | Object |
|
Response
Code | Description |
---|---|
200 | Code 200 implies that the form/form fields have been updated successfully. |
{
"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"
]
}
]
}
}
]
}