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": "b76d8f04-082c-25f4-271f-9ae22997feb1",
"groups": [
"6a3914e72957d413c3cea4d4",
"dd9b68d8d564dbb9e3c1ad08",
"303211abbf1a8b35c238e88e"
],
"created": "1994-03-19T12:00:03.874Z",
"created_by": "598434efa532bf7c3b79846e",
"last_updated": "2002-02-09T04:07:07.132Z",
"last_updated_by": "54db4a77e6fca9f21ab8e949"
}
}
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": "3462b61e-4a38-33d9-98d1-ef8673c6d9ac",
"groups": [
"8fb4192f67319257e6f27313",
"8261a06205d1b878d30bcdd5",
"f2e7460c089a0cc0178a74c7",
"55a2abc2c9384eaafc6c3bb9"
],
"created": "1970-10-21T08:14:01.183Z",
"created_by": "fec523d35a79c39814da9d3a",
"last_updated": "1989-04-13T00:33:47.421Z",
"last_updated_by": "bfcef6525ae0fdbdfdf98af9"
}