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": "5ae95f2e-f2d2-7dd2-aa7c-c341836f7531",
"groups": [
"c60d046b03112a7ec460dad8",
"626bafbf333b93ddb8597d1a",
"c33a760d705abd593c4b4052",
"ffb3e390ef27611e9a3fc050",
"ec5619c0c79abdac5cabfb2f"
],
"created": "1955-04-05T17:49:33.723Z",
"created_by": "58a29617b91b28a3cb925532",
"last_updated": "2008-06-21T23:51:15.087Z",
"last_updated_by": "aff7f771d764a7f4f4def420"
}
}
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": "8846b32c-34ba-46f0-2f0a-850a31f608a6",
"groups": [
"4fedbc15bf274b1d8689d1fc",
"0dfe87de417e5a72997c2137"
],
"created": "1960-03-14T05:47:40.998Z",
"created_by": "c325c7d577946fbffcd230ff",
"last_updated": "1984-06-09T16:00:35.7Z",
"last_updated_by": "d00f5519597cc539b33cb81a"
}