Create Form
POST
/admin/forms
const url = 'http://localhost:9000/admin/forms';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","handle":"example","description":"example","active":true,"turnstile_enabled":true,"notification_emails":["example"],"metadata":{},"form_fields":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9000/admin/forms \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "handle": "example", "description": "example", "active": true, "turnstile_enabled": true, "notification_emails": [ "example" ], "metadata": {}, "form_fields": [ "example" ] }'Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
string
handle
required
string
description
string
active
boolean
turnstile_enabled
boolean
notification_emails
Array<string>
metadata
object
key
additional properties
any
form_fields
Array<string>
Example generated
{ "name": "example", "handle": "example", "description": "example", "active": true, "turnstile_enabled": true, "notification_emails": [ "example" ], "metadata": {}, "form_fields": [ "example" ]}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}