Summary
Preserve incoming form data format
Description
Find and revert containers object/array mutation
Route
POST /formbuilder/preserveFormData
Roles
admin
apiread
operator
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
form_name |
string |
yes |
Form name |
data |
object |
yes |
Form output data to convert |
Copied to Clipboard
{
"form_name": "Form 123",
"data": {
"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": "814d9702-b07b-b722-ce36-d2f78fbcdd89",
"groups": [
"8ffb7843f7793f41133dffcc",
"30a4fa9be16712b1a5a74b25",
"83e014f4642defcdb0d19f3c",
"cacdb772a1dd37e3a3a0f9ec",
"90fb27c59d993a3f41ab5c80"
],
"created": "2014-08-08T13:58:14.551Z",
"created_by": "a267ef75b80288dddcb0f13c",
"last_updated": "1976-02-02T00:18:59.989Z",
"last_updated_by": "b3ff47a45d8fd1d3be4b969b"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"form_name": {
"title": "form_name",
"$ref": "formDocument#/definitions/formName"
},
"data": {
"title": "data",
"$ref": "formDocument"
}
},
"required": [
"form_name",
"data"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
object |
Forms details |
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"
},
{
"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": "7161797b-558c-1a8b-6d66-f98cc7cc6896",
"groups": [
"802e43b2f99b71c1fdabd89d",
"9df35544ddc454950b9707e6",
"ef275d4e3b1803cdc350f587",
"9be117efc55514f120fe2081",
"627772a7b84a8715b5df3150"
],
"created": "1955-07-15T17:36:44.549Z",
"created_by": "20de308ca3bab3eed84deceb",
"last_updated": "1977-08-30T00:57:29.926Z",
"last_updated_by": "76ab458c539d67b9332608b8"
}