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"
},
{
"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": "d7fb0bfb-1da2-a97b-24a8-b92f092aae08",
"groups": [
"18ce7057b41b14baabb458ef",
"b8a5d38570e2239d877b19a0",
"44b471c0ef00f221bcd97486",
"d5f719c9f56a159b6df597db"
],
"created": "2020-01-24T08:23:19.565Z",
"created_by": "f570282876fcf94d2f3dffea",
"last_updated": "1950-12-24T02:34:57.608Z",
"last_updated_by": "90db9b2ee6983ea7b2ee45bd"
}
}
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": "adbbb8bd-cac5-7e77-8a74-9f38c2c622a4",
"groups": [
"88ffd9ea04d14a904d1e366b",
"dbaff0712115ecdc6360901b",
"79f8655a0857660524df5fdb",
"7046b5371d3900d4898e0bba",
"e9a72ae7426b14bb82ea0dcd"
],
"created": "2009-11-04T06:03:51.549Z",
"created_by": "90b72bc03869ba046f75bd9f",
"last_updated": "1980-04-18T01:46:28.333Z",
"last_updated_by": "d1ee4bba5518889049c8d384"
}