Summary
Save a Generated Form
Description
Save a generated form with its data.
Route
POST /formbuilder/saveForm
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| formData |
object |
yes |
Form data to be saved. |
Copied to Clipboard
{
"formData": {
"name": "Form 123",
"children": [
{
"type": "field",
"name": "ipaddress",
"properties": {
"type": "string",
"prefix": ""
},
"description": "IP address",
"element": "{\"type\":\"method\",\"id\":{\"name\":\"method_name_1\"}}",
"source_type": "method",
"source": "method_name_1",
"id": "a40044c2-f378-4b2b-a81a-41d78979e583",
"yangkey": "",
"key": "method_name_1.ipAddress"
}
],
"elements": [
{
"type": "method",
"id": {
"name": "method_name_1"
}
}
],
"_id": "85669d59-c2cf-1d39-73be-dc29674fbca9",
"groups": [
"43c8210636654e595b87b82f",
"727ed5b2c259dc249a30290f",
"06039b0922979e9cfcd273fe"
],
"created": "2006-06-16T17:08:33.109Z",
"created_by": "7c368e09ab92000dd1fd3e53",
"last_updated": "1971-04-15T12:14:20.407Z",
"last_updated_by": "7b9db6614fe49d1778dae075"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"formData": {
"title": "formData",
"$ref": "formDocument"
}
},
"required": [
"formData"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| reply |
object |
Status of save form |
Copied to Clipboard
{
"name": "Form 123",
"children": [
{
"type": "field",
"name": "ipaddress",
"properties": {
"type": "string",
"prefix": ""
},
"description": "IP address",
"element": "{\"type\":\"method\",\"id\":{\"name\":\"method_name_1\"}}",
"source_type": "method",
"source": "method_name_1",
"id": "a40044c2-f378-4b2b-a81a-41d78979e583",
"yangkey": "",
"key": "method_name_1.ipAddress"
}
],
"elements": [
{
"type": "method",
"id": {
"name": "method_name_1"
}
}
],
"_id": "4a06e0ed-b541-3b86-a464-bf0600ac8518",
"groups": [
"912528918808ae824cf1a636",
"6b66dca9775be3e8e8552f3f"
],
"created": "2001-01-19T15:04:36.093Z",
"created_by": "ad909670bdc49158cc493981",
"last_updated": "1955-01-01T17:44:14.201Z",
"last_updated_by": "985c7ec490edfbaffe35b75b"
}