curl --location --request PUT 'https://api.makini.io/v4/embed/forms/' \
--header 'Content-Type: application/json' \
--data '{
"name": "string",
"schema": {
"version": 0,
"groups": [
{
"id": "string",
"key": "string",
"name": "string",
"description": "string",
"hasToggle": true,
"defaultToggle": true,
"visibility": {
"groupOperator": "AND",
"groups": [
{
"operator": "AND",
"conditions": [
{
"groupKey": "string",
"fieldKey": "string",
"op": "eq",
"value": null
}
]
}
]
},
"warning": {
"condition": {
"groupOperator": "AND",
"groups": [
{
"operator": "AND",
"conditions": [
{
"groupKey": "string",
"fieldKey": "string",
"op": "eq",
"value": null
}
]
}
]
},
"title": "string",
"message": "string",
"acknowledgeLabel": "string"
},
"fields": [
{
"id": "string",
"key": "string",
"label": "string",
"description": "string",
"required": true,
"requiredMessage": "string",
"inline": true,
"visibility": {
"groupOperator": "AND",
"groups": [
{
"operator": "AND",
"conditions": [
{
"groupKey": "string",
"fieldKey": "string",
"op": "eq",
"value": null
}
]
}
]
},
"warning": {
"condition": {
"groupOperator": "AND",
"groups": [
{
"operator": "AND",
"conditions": [
{
"groupKey": "string",
"fieldKey": "string",
"op": "eq",
"value": null
}
]
}
]
},
"title": "string",
"message": "string",
"acknowledgeLabel": "string"
},
"type": "text",
"default": "string",
"regexPattern": "string",
"format": "email"
}
]
}
]
},
"formEnabled": true,
"key": "string"
}'{
"form": {
"key": "string",
"name": "string",
"version": 0,
"formEnabled": true,
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z",
"schema": {
"version": 0,
"groups": [
{
"key": "string",
"fields": [
{
"key": "string",
"type": "string",
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
}
}
}