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": "2fe8d09d-afac-8b2e-7637-a1907149f62b",
"groups": [
"187c01e5393329153c47c195"
],
"created": "1972-02-20T10:38:50.716Z",
"created_by": "0031f4a4dd17bdb987303a03",
"last_updated": "1960-04-03T22:52:41.526Z",
"last_updated_by": "7efb7a2f726fa987c117a667"
}
}
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": "038389cc-aa17-9b54-5331-32c82b4820f4",
"groups": [
"e35bb0a58d1fef53d8d21c46",
"9689b7082d18e98256c2e499"
],
"created": "1982-09-28T05:55:51.37Z",
"created_by": "f99dc47d61dfe245ec512bbc",
"last_updated": "2015-04-25T03:41:43.453Z",
"last_updated_by": "64d44996e89abef40d280fcd"
}