Update Or Create Form

Update Or Create Form

Update or create a Form.

Request
URI
PUT
https://{api_host}/forms-service/api/forms/{id}
COPY
Path Parameters
string
id
Required

The id of an form.


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
200

'Success' with Form object that is updated

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


201

'Created' with Form object that is created

Operation doesn't return any data structure