Forms

Create a new form definition

Creates a new form definition for a given form.

post/api/forms/{formId}/definitions

Path parameters

formIdinteger required

The ID of the form.

Request body

isDraftboolean required

Indicates if the form definition is a draft.

jsonDatastring required

The JSON data of the form definition.

Response

Form definition created successfully.

idstring nullable

The ID of the form definition.

isDraftboolean

Indicates if the form definition is a draft.

jsonDatastring nullable

The JSON data of the form definition.

formIdstring nullable

The ID of the associated form.

createdAtstring date-time

The date and time when the form definition was created.

modifiedAtstring date-time nullable

The date and time when the form definition was last modified.

themeModelstring nullable

The model of the associated theme stored as a stringified JSON object.

customQuestionsstring[] nullable

The list of custom questions' JSON data associated with this form definition.

requiresReCaptchaboolean nullable

Indicates if reCAPTCHA is enabled for this form definition.

Changes

Changed in 2 of the 7 revisions of this API.134

  • 50eff5014b7813See the full diff
    • removed the media type application/problem+json for the response with the status 400

      response-media-type-removed

    • added the optional property allOf[FormDefinitionModel]/customQuestions to the response with the 201 status

      response-optional-property-added

    • added the optional property allOf[FormDefinitionModel]/requiresReCaptcha to the response with the 201 status

      response-optional-property-added

    • added the optional property allOf[FormDefinitionModel]/themeModel to the response with the 201 status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • fbc3fe6ecbf131See the full diff
    • removed the optional property allOf[FormDefinitionModel]/customQuestions from the response with the 201 status

      response-optional-property-removed

    • removed the optional property allOf[FormDefinitionModel]/requiresReCaptcha from the response with the 201 status

      response-optional-property-removed

    • removed the optional property allOf[FormDefinitionModel]/themeModel from the response with the 201 status

      response-optional-property-removed

    • added the media type application/problem+json for the response with the status 400

      response-media-type-added

    This revision also has 62 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog