Skip to main content

betaThis is a new capability. Help us improve it and give your feedback on Slack.

form-metadata-schema

Form Metadata Schema Type

object (Form Metadata Schema)

Form Metadata Schema Properties

PropertyTypeRequiredNullableDefined by
titlestringRequiredcannot be nullForm Metadata Schema
organisationstringRequiredcannot be nullForm Metadata Schema
teamNamestringRequiredcannot be nullForm Metadata Schema
teamEmailstringRequiredcannot be nullForm Metadata Schema
contactobjectOptionalcannot be nullForm Metadata Schema
submissionGuidancestringOptionalcannot be nullForm Metadata Schema
privacyNoticeTypestringOptionalcannot be nullForm Metadata Schema
privacyNoticeTextMergedOptionalcan be nullForm Metadata Schema
privacyNoticeUrlMergedOptionalcan be nullForm Metadata Schema
termsAndConditionsAgreedbooleanOptionalcannot be nullForm Metadata Schema
notificationEmailstringOptionalcannot be nullForm Metadata Schema
idstringRequiredcannot be nullForm Metadata Schema
slugstringRequiredcannot be nullForm Metadata Schema
draftobjectOptionalcannot be nullForm Metadata Schema
liveobjectOptionalcannot be nullForm Metadata Schema
createdAtstringRequiredcannot be nullForm Metadata Schema
createdByobjectRequiredcannot be nullForm Metadata Schema
updatedAtstringRequiredcannot be nullForm Metadata Schema
updatedByobjectRequiredcannot be nullForm Metadata Schema
versionsarrayOptionalcannot be nullForm Metadata Schema

title

Title of the form, displayed to users

title

Title Type

string (Title)

title Constraints

maximum length: the maximum number of characters for this string is: 250

organisation

Defra organisation responsible for the form

organisation

Organisation Type

string (Organisation)

organisation Constraints

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"Animal and Plant Health Agency – APHA"
"Centre for Environment, Fisheries and Aquaculture Science – Cefas"
"Defra"
"Environment Agency"
"Forestry Commission"
"Marine Management Organisation – MMO"
"Natural England"
"Rural Payments Agency – RPA"
"Veterinary Medicines Directorate – VMD"

teamName

Name of the team responsible for the form

teamName

Team Name Type

string (Team Name)

teamName Constraints

maximum length: the maximum number of characters for this string is: 100

teamEmail

Contact email for the team responsible for the form

teamEmail

Team Email Type

string (Team Email)

teamEmail Constraints

email: the string must be an email address, according to RFC 5322, section 3.4.1

contact

Complete contact information for form-related inquiries

contact

Contact Type

object (Contact)

submissionGuidance

Guidance text shown to users when submitting the form

submissionGuidance

Submission Guidance Type

string (Submission Guidance)

privacyNoticeType

Type of privacy notice content

privacyNoticeType

Privacy Notice Type Type

string (Privacy Notice Type)

privacyNoticeType Constraints

enum: the value of this property must be equal to one of the following values:

ValueExplanation
"text"
"link"

privacyNoticeText

The privacy notice text value.

privacyNoticeText

Privacy Notice Text Type

any of the following: array or boolean or number or object or string (Privacy Notice Text)

one (and only one) of

privacyNoticeUrl

The privacy notice url value.

privacyNoticeUrl

Privacy Notice Url Type

any of the following: array or boolean or number or object or string (Privacy Notice Url)

one (and only one) of

termsAndConditionsAgreed

Whether the data protection terms and conditions have been agreed to

termsAndConditionsAgreed

Terms And Conditions Agreed Type

boolean (Terms And Conditions Agreed)

notificationEmail

Email address to receive form submission notifications

notificationEmail

Notification Email Type

string (Notification Email)

notificationEmail Constraints

email: the string must be an email address, according to RFC 5322, section 3.4.1

id

Unique identifier for the form, 24-character hexadecimal string

id

Id Type

string (Id)

slug

URL-friendly identifier used in form paths

slug

Slug Type

string (Slug)

slug Constraints

pattern: the string must match the following regular expression:

^[a-z0-9-]+$

try pattern

draft

Metadata for the draft version

draft

Draft Type

object (Draft)

live

Metadata for the published version

live

Live Type

object (Live)

createdAt

When the form was first created

createdAt

Created At Type

string (Created At)

createdAt Constraints

date time: the string must be a date time string, according to RFC 3339, section 5.6

createdBy

Who created the form

createdBy

Created By Type

object (Created By)

updatedAt

When the form was last updated

updatedAt

Updated At Type

string (Updated At)

updatedAt Constraints

date time: the string must be a date time string, according to RFC 3339, section 5.6

updatedBy

Who last updated the form

updatedBy

Updated By Type

object (Updated By)

versions

Version history for the form

versions

Versions Type

object[] (Versions Item)