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": "2464cf62-1148-41af-f0a8-09d0d0d048ef",
"groups": [
"d37dd168f8b2caa658fdb52a",
"cbca8ce239512a6bf9e3c3cd",
"bb788c324da1315e37efe333"
],
"created": "1989-08-31T19:08:25.696Z",
"created_by": "8f291052fa43ae19bfd4394c",
"last_updated": "1992-08-29T11:16:33.27Z",
"last_updated_by": "ec2dec1d19a12bde520e47b7"
}
}
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": "029f207e-542b-aae0-f969-c5e2cfc865d2",
"groups": [
"cdd5a11c6f82a284d03fb115",
"c6c5dbfe7b895cb2b4cd5c4b",
"7a2a2d371cf2b4d08b8e77d1"
],
"created": "1991-05-24T22:07:50.258Z",
"created_by": "ed858375492c3409bd2f8960",
"last_updated": "2019-03-27T00:15:23.508Z",
"last_updated_by": "66c2cac1749c3cb40a180545"
}