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": "bc0a22c8-109c-2236-6eef-58d2fdf4ddc9",
"groups": [
"5b8d7cf27bb690f9499d0b22",
"a3bd827bea2bc63bc7459e87",
"85dbd265e39c9de162903748",
"29c23751cdb3d15277f0d341",
"ec8f722d7898b365b0be5c65"
],
"created": "2005-06-08T04:05:55.324Z",
"created_by": "ad40beff0a01cc874566f0b4",
"last_updated": "1949-10-22T13:20:27.749Z",
"last_updated_by": "d288f7a5aa51781aa9d5fb6d"
}
}
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": "8f1ad7b8-21b5-a077-be7c-e515fcfcc6cc",
"groups": [
"60decdcf20a6b7320c3d42d9",
"1110daee9862b5a4c457b263"
],
"created": "1992-07-15T12:28:14.217Z",
"created_by": "a188bcb39fb1ee416da55c81",
"last_updated": "1977-12-17T23:49:43.948Z",
"last_updated_by": "47f542d73e9cfb346e38b938"
}