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": "debcfd32-1bc9-ad6f-1e76-6c757765b27f",
"groups": [
"361e6a475bf425a43cce3343"
],
"created": "2010-09-05T00:57:16.02Z",
"created_by": "02a050ea0d36810daba74369",
"last_updated": "1986-09-30T14:56:07.895Z",
"last_updated_by": "9d32d383e576044dd2431278"
}
}
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": "eee9eee2-bae0-e2e4-bef6-2311fdf55bf3",
"groups": [
"6f87fe63b8581ef46eff4633",
"5ffed6e2733160396498e45e"
],
"created": "2001-05-09T06:06:55.538Z",
"created_by": "a0d2443267674285885d2808",
"last_updated": "1955-01-08T21:04:22.201Z",
"last_updated_by": "24236f583e08ed89b9cd5bd0"
}