Update Form
POST
/admin/forms/{id}
const url = 'http://localhost:9000/admin/forms/example';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","label":"example","field_type":"example","required":true,"sort_order":1}'};
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/example \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "handle": "example", "description": "example", "active": true, "turnstile_enabled": true, "notification_emails": [ "example" ], "metadata": {}, "form_fields": "example", "label": "example", "field_type": "example", "required": true, "sort_order": 1 }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
name
required
string
handle
string
description
string
active
boolean
turnstile_enabled
boolean
notification_emails
Array<string>
metadata
object
key
additional properties
any
form_fields
string
label
required
string
field_type
required
string
required
boolean
sort_order
number
Example generated
{ "name": "example", "handle": "example", "description": "example", "active": true, "turnstile_enabled": true, "notification_emails": [ "example" ], "metadata": {}, "form_fields": "example", "label": "example", "field_type": "example", "required": true, "sort_order": 1}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}