PUT https://api.bundeling.com/V2/forms
Parameters
Url
Name | Description | Type |
---|
uuid | A unique identifier used to identify a form | string |
Body
Name | Description | Type | Nillable |
---|
name | The name of the form | string | false |
emails | The email(s) that will receive the result (comma separated) | string | false |
draft | Save the event as draft or published | boolean | false |
repeating | Set repeating true if the form can be filled in multiple times | boolean | false |
fields | A collection of fields that together form the form | json | false |
Example request
Headers
Body
{
"name": "New guest form",
"emails": "support@bundeling.com",
"draft": true,
"repeating": false,
"fields": [
{
"name": "Number of guests",
"type": "number",
"attributes": {
"subtype": "float",
"defaultValue": "1"
},
"id": "f3a8688ce8c04d08baaee34c0e1e981b",
"key": "9cda81b0a10648308da3be99e22c5c55"
},
{
"name": "Remarks",
"type": "input",
"attributes": [],
"key": "dcaa2757675f4f9385d43b5bc9e6e6ec",
"id": "7e2707717dd94d54b7ef9b0f2f1361ae"
}
]
}
Example response
{
"uuid": "eeb763c41c054dcc8f6d9362f24ee9b2",
"name": "New guest form",
"emails": "support@bundeling.com",
"draft": false,
"repeating": false,
"fields": [
{
"name": "Number of guests",
"type": "number",
"attributes": {
"subtype": "float",
"defaultValue": "1"
},
"id": "f3a8688ce8c04d08baaee34c0e1e981b",
"key": "9cda81b0a10648308da3be99e22c5c55"
},
{
"name": "Remarks",
"type": "input",
"attributes": [],
"key": "dcaa2757675f4f9385d43b5bc9e6e6ec",
"id": "7e2707717dd94d54b7ef9b0f2f1361ae"
}
],
"creationdate": "2024-01-20T00:00:00+0100",
"lastupdate": "2024-01-20T00:00:00+0100"
}