Create Form

Create Form

Create a Form.

Request
URI
POST
https://{api_host}/forms-service/api/forms
COPY
Request Body
formDefinition of type(s) application/json
Optional
{
    "parent": "string",
    "form": {
        "designerLayout": {
            "pages": [
                {
                    "id": "string",
                    "label": "string",
                    "state": {
                        "dependencies": [
                            "string"
                        ],
                        "facets": [
                            {}
                        ]
                    },
                    "sections": [
                        {
                            "designerHidden": false,
                            "id": "string",
                            "label": "string",
                            "state": {
                                "dependencies": [
                                    "string"
                                ],
                                "facets": [
                                    {}
                                ]
                            },
                            "rows": [
                                {
                                    "items": [
                                        {
                                            "size": 0
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "name": "string"
    },
    "formTypeData": {
        "formData": "string",
        "type": "string"
    },
    "name": "string",
    "formData": "string",
    "styles": "string",
    "id": "string",
    "type": "string",
    "tenant": "string"
}
string
parent
Optional

parent

form
Optional

form

formTypeData
Optional

formTypeData

string
name
Required

name

string
formData
Optional

formData

string
styles
Optional

styles

string As uuid As uuid
id
Optional

id

string
type
Optional

type

string
tenant
Optional

tenant

Responses
201

'Created' with Form object that is created

Returns formDefinition of type(s) */*
{
    "parent": "string",
    "form": {
        "designerLayout": {
            "pages": [
                {
                    "id": "string",
                    "label": "string",
                    "state": {
                        "dependencies": [
                            "string"
                        ],
                        "facets": [
                            {}
                        ]
                    },
                    "sections": [
                        {
                            "designerHidden": false,
                            "id": "string",
                            "label": "string",
                            "state": {
                                "dependencies": [
                                    "string"
                                ],
                                "facets": [
                                    {}
                                ]
                            },
                            "rows": [
                                {
                                    "items": [
                                        {
                                            "size": 0
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "name": "string"
    },
    "formTypeData": {
        "formData": "string",
        "type": "string"
    },
    "name": "string",
    "formData": "string",
    "styles": "string",
    "id": "string",
    "type": "string",
    "tenant": "string"
}
string
parent
Optional

parent

form
Optional

form

formTypeData
Optional

formTypeData

string
name
Required

name

string
formData
Optional

formData

string
styles
Optional

styles

string As uuid As uuid
id
Optional

id

string
type
Optional

type

string
tenant
Optional

tenant