Create a form

Creates an active-school form after validating its schemas, audience, receipt settings, and optional payment configuration.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
namestringRequired<=255 characters
academic_year_idintegerRequired
activebooleanRequired
data_schemalist of maps from strings to anyRequired

JSON-schema field definitions

ui_schemalist of maps from strings to anyRequired
Form UI schema
recaptchabooleanRequired
email_receiptbooleanRequired
thank_you_messagestring or nullOptional
form_audience_idinteger or nullOptional
payment_settingsmap from strings to any or nullOptional
thank_you_iconstring or nullOptional
thank_you_icon_colorstring or nullOptional

Response

Form created.
statusenum
messagestring
dataobject

Errors

401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error