Skip to content

Survey Schema

Understanding the Survey Schema

The Basics

The schema for surveys provide a clear and consitent structure for all surveys. It includes all necessary items to run the survey. The following is the schema for o-RDS surveys:

FieldTypeDescriptionDefault Value
idStringThe unique ID for the surveyA unique string generated using uuidv4
titleStringThe title of a survey”Untitled Survey”
adminsList of StringsA list of emails of the persons who have access to the survey[]
liveBooleanThe current publication state of the surveyfalse
completionPayoutNumberThe amount that is paid out for a participant who completes the survey0.0
refPayoutNumberThe amount paid out to a participant who successfully referred another participant0.0
maxRefsNumberThe maximum amount of successful referrals a participant can make0
maxRefIncentivesNumberThe maximum amount of times a participant can be paid for successful referrals0
lastUpdatedDate ObjectThe date of the last time the survey was updated{}
researcherMessageStringThe message for a researcher to provide as thanks""
endSurveyMessageStringThe message presented at the end of the survey”Thank you for taking our survey”
informedConsentObjectThe informed consent message and requirements{message: “You must consent to this survey”, consentRequirements: ""}
contactInfoObjectContact information for use in live surveys{phone: "", email: "", mail: ""}
questionOrderList of StringsProvides the survey with an order for each of the questions[""]
questionsObjectContains all questions and their individual configurationsRefer to here for more information on the structure of questions