API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · surveys

Survey Schema

Schema-ID
survey
Collection
surveys
Permissions
  • Lezensurvey_view
  • Aanmakensurvey_create
  • Wijzigensurvey_edit
  • Verwijderensurvey_delete

Velden

Survey Schema

surveys4 permissions

Schema for survey/form definitions with embedded questions and logic

titlestringvereist
1–200 tekens
descriptionstringoptioneel
max. 5000 tekensnullable
descriptionHtmlstringoptioneel
nullable
statusstringvereist
DRAFTACTIVEPAUSEDCLOSEDARCHIVED
surveyTypestringoptioneel
GENERALCSATNPSONBOARDINGSERVICE_REVIEWCUSTOM
Default: "GENERAL"
surveyNumberstringoptioneel
nullable
isTemplatebooleanoptioneel
Default: false
templateIduuidoptioneel
nullable
questionsobject[]optioneel
Default: []
questionIduuidvereist
sortOrderintegervereist
≥ 0
typestringvereist
SHORT_TEXTLONG_TEXTEMAILPHONEURLNUMBERSINGLE_CHOICEMULTIPLE_CHOICEDROPDOWNRATINGNPSDATEDATETIMEFILE_UPLOADYES_NOOPINION_SCALEMATRIXRANKINGLISTSTATEMENT
requiredbooleanvereist
Default: false
titlestringvereist
1–2000 tekens
descriptionstringoptioneel
max. 5000 tekensnullable
descriptionHtmlstringoptioneel
nullable
placeholderstringoptioneel
max. 200 tekensnullable
mediaUrlstringoptioneel
nullable
mediaTypestringoptioneel
IMAGEVIDEO
nullable
configobjectoptioneel

Type-specific configuration, discriminated by kind

nullable
kindstringoptioneel
textnumberchoiceratingnpsdatefileUploadyesNoopinionScalematrixrankingliststatement
minnumberoptioneel
nullable
maxnumberoptioneel
nullable
stepnumberoptioneel
nullable
unitstringoptioneel
max. 50 tekensnullable
optionsobject[]optioneel
nullable
optionIduuidvereist
labelstringvereist
1–500 tekens
valuestringvereist
1–200 tekens
imageUrlstringoptioneel
nullable
allowOtherbooleanoptioneel
nullable
randomizebooleanoptioneel
nullable
maxRatingintegeroptioneel
2 – 10nullable
iconstringoptioneel
STARHEARTTHUMBNUMBER
nullable
labelsobjectoptioneel
nullable
lowstringoptioneel
max. 100 tekens
highstringoptioneel
max. 100 tekens
detractorstringoptioneel
max. 100 tekensnullable
passivestringoptioneel
max. 100 tekensnullable
promoterstringoptioneel
max. 100 tekensnullable
includeTimebooleanoptioneel
nullable
minDatedatetimeoptioneel
nullable
maxDatedatetimeoptioneel
nullable
maxFilesintegeroptioneel
1 – 20nullable
maxSizeMbintegeroptioneel
1 – 100nullable
allowedTypesstring[]optioneel
nullable
yesLabelstringoptioneel
max. 100 tekensnullable
noLabelstringoptioneel
max. 100 tekensnullable
minLabelstringoptioneel
max. 100 tekensnullable
maxLabelstringoptioneel
max. 100 tekensnullable
rowsstring[]optioneel
nullable
columnsstring[]optioneel
nullable
allowMultiplebooleanoptioneel
nullable
itemsstring[]optioneel
nullable
fieldsobject[]optioneel
nullable
fieldIduuidvereist
keystringvereist
1–100 tekens
labelstringvereist
1–200 tekens
typestringvereist
TEXTNUMBEREMAILPHONEURLDATEDROPDOWN
requiredbooleanvereist
placeholderstringoptioneel
max. 200 tekensnullable
optionsstring[]optioneel
nullable
validationobjectoptioneel
nullable
minLengthintegeroptioneel
nullable
maxLengthintegeroptioneel
nullable
minnumberoptioneel
nullable
maxnumberoptioneel
nullable
patternstringoptioneel
nullable
minItemsintegeroptioneel
≥ 0nullable
maxItemsintegeroptioneel
≥ 1nullable
addButtonLabelstringoptioneel
max. 100 tekensnullable
validationobjectoptioneel
nullable
minLengthintegeroptioneel
nullable
maxLengthintegeroptioneel
nullable
minnumberoptioneel
nullable
maxnumberoptioneel
nullable
patternstringoptioneel
nullable
customErrorMessagestringoptioneel
max. 500 tekensnullable
translationsobjectoptioneel
nullable
skillIduuidoptioneel

Optional skill_definition UUID this question rates; used for explicit skill updates on ticket assignee

nullable
skillScoringModestringoptioneel

direct = higher answer means stronger skill; inverted = lower answer means stronger skill

directinvertednull
nullable
logicRulesobject[]optioneel
Default: []
ruleIduuidvereist
sourceQuestionIduuidvereist
conditionobjectvereist
operatorstringvereist
EQUALSNOT_EQUALSCONTAINSNOT_CONTAINSGREATER_THANLESS_THANIS_ANSWEREDIS_NOT_ANSWEREDINNOT_IN
valueanyoptioneel
actionobjectvereist
typestringvereist
SHOWHIDEJUMP_TOEND_SURVEY
targetQuestionIduuidoptioneel
nullable
designobjectoptioneel
nullable
primaryColorstringoptioneel
max. 20 tekensnullable
backgroundColorstringoptioneel
max. 20 tekensnullable
backgroundImageUrlstringoptioneel
nullable
logoUrlstringoptioneel
nullable
fontFamilystringoptioneel
defaultserifmono
nullable
showProgressBarbooleanoptioneel
Default: true
showQuestionNumbersbooleanoptioneel
Default: true
layoutstringoptioneel
ONE_PER_PAGEALL_AT_ONCESECTIONS
Default: "ALL_AT_ONCE"
colorModestringoptioneel
lightdarkauto
Default: "light"nullable
useTenantBrandingbooleanoptioneel
Default: true
themestringoptioneel
defaultminimalvibrantnatureoceansunsetlavenderslate
nullable
cardRadiusintegeroptioneel
0 – 30nullable
buttonRadiusintegeroptioneel
0 – 30nullable
distributionobjectoptioneel
nullable
publicSlugstringoptioneel
3–100 tekensnullable
allowAnonymousbooleanoptioneel
Default: true
requireAuthbooleanoptioneel
Default: false
oneResponsePerPersonbooleanoptioneel
Default: false
deduplicationFieldstringoptioneel
emailuserIdipnone
nullable
maxResponsesintegeroptioneel
≥ 1nullable
passwordstringoptioneel
max. 200 tekensnullable
passwordHashstringoptioneel
nullable
allowedDomainsstring[]optioneel
nullable
embedEnabledbooleanoptioneel
Default: false
scheduleobjectoptioneel
nullable
startsAtdatetimeoptioneel
nullable
endsAtdatetimeoptioneel
nullable
timezonestringoptioneel
max. 50 tekensnullable
completionobjectoptioneel
nullable
thankYouTitlestringoptioneel
max. 500 tekensnullable
thankYouMessagestringoptioneel
max. 5000 tekensnullable
redirectUrlstringoptioneel
max. 2000 tekensnullable
showSummarybooleanoptioneel
Default: false
remindersobjectoptioneel
nullable
enabledbooleanoptioneel
Default: false
intervalDaysintegeroptioneel
1 – 90nullable
maxRemindersintegeroptioneel
1 – 10nullable
emailSubjectstringoptioneel
max. 200 tekensnullable
emailBodystringoptioneel
max. 5000 tekensnullable
integrationobjectoptioneel
nullable
triggerOnTicketClosebooleanoptioneel
Default: false
triggerTicketTypesstring[]optioneel
nullable
linkToPartyIduuidoptioneel
nullable
linkToContractIduuidoptioneel
nullable
languagesstring[]optioneel
Default: []
translationsobjectoptioneel
nullable
responseCountintegeroptioneel
≥ 0Default: 0
completionRatenumberoptioneel
0 – 100nullable
averageCompletionTimeSecnumberoptioneel
≥ 0nullable
npsScorenumberoptioneel
-100 – 100nullable
assignedToIduuidoptioneel
nullable
orgUnitIduuidoptioneel
nullable
tagsstring[]optioneel
nullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/surveys — Lijst, gepagineerd + filterbaar
  • GET /api/v1/surveys/<id> — Enkele entity
  • POST /api/v1/surveys — Aanmaken
  • PATCH /api/v1/surveys/<id> — Gedeeltelijke update
  • DELETE /api/v1/surveys/<id> — Soft-delete
  • GET /api/v1/surveys/<id>/timeline — Audit + activiteiten

Zoeken