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": "2b309b0d-9215-860a-11bc-cff48334d43a",
"groups": [
"0d9751c61bdbd683e42b1e3b",
"2b2ccaa3ed74d2f08126daa7",
"e4533a910ad97c93a90e660f"
],
"created": "2008-06-09T03:24:24.253Z",
"created_by": "ce9f63707029a3ab5c70f005",
"last_updated": "1977-06-13T02:34:27.745Z",
"last_updated_by": "d3e7960fe35ad1fe1f94568f"
}
}
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": "30d2e965-c014-46ab-8d6a-3f9e90f40095",
"groups": [
"28db7f13a88bb32b7a70027e",
"0573581d68b1aefad5fb3581"
],
"created": "2000-07-02T01:08:21.608Z",
"created_by": "e6237cb714c0172b525c59d6",
"last_updated": "2021-05-06T14:56:22.526Z",
"last_updated_by": "eb456edc1ac24834c2c17b48"
}