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": "de29909e-5e44-f133-100d-d676b316a52e",
"groups": [
"d76e0be010476fef6d50134e",
"0508a73f6305a9769e76866c"
],
"created": "1972-03-21T05:32:59.507Z",
"created_by": "f6c9575ad7b8886a8ba40543",
"last_updated": "1957-08-29T14:08:42.537Z",
"last_updated_by": "0fc5339f53bed673f3d5f767"
}
}
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": "91595eaf-14dd-ba99-030e-95823ce5be01",
"groups": [
"fdad72340ac951d311f074cc",
"021f31a05821b11a409ddb1c",
"9d7438ac2679b9497bf7ec05",
"3dcd8c1f6308653f381cfeb4"
],
"created": "1961-07-26T21:09:33.348Z",
"created_by": "52bbd109d57466a239d2c0af",
"last_updated": "1999-04-24T20:08:28.487Z",
"last_updated_by": "c433bec0355aed93d476f708"
}