Entité · surveys
Survey Schema
Champs
Survey Schema
Schema for survey/form definitions with embedded questions and logic
title
1–200 caractères
description
max. 5000 caractèresnullable
descriptionHtml
nullable
status
Valeurs
DRAFTACTIVEPAUSEDCLOSEDARCHIVEDsurveyType
Valeurs
GENERALCSATNPSONBOARDINGSERVICE_REVIEWCUSTOMPar défaut : "GENERAL"
surveyNumber
nullable
isTemplate
Par défaut : false
templateId
nullable
questions
Par défaut : []
sortOrder
≥ 0
type
Valeurs
SHORT_TEXTLONG_TEXTEMAILPHONEURLNUMBERSINGLE_CHOICEMULTIPLE_CHOICEDROPDOWNRATINGNPSDATEDATETIMEFILE_UPLOADYES_NOOPINION_SCALEMATRIXRANKINGLISTSTATEMENTTICKET_INFOPAGE_BREAKWELCOME_SCREENTHANK_YOU_SCREENrequired
Par défaut : false
title
1–2000 caractères
description
max. 5000 caractèresnullable
descriptionHtml
nullable
placeholder
max. 200 caractèresnullable
mediaUrl
nullable
mediaType
Valeurs
IMAGEVIDEOnullable
config
Type-specific configuration, discriminated by kind
nullable
kind
Valeurs
textnumberchoiceratingnpsdatefileUploadyesNoopinionScalematrixrankingliststatementmin
nullable
max
nullable
step
nullable
unit
max. 50 caractèresnullable
allowOther
nullable
randomize
nullable
maxRating
2 – 10nullable
icon
Valeurs
STARHEARTTHUMBNUMBERnullable
includeTime
nullable
minDate
nullable
maxDate
nullable
maxFiles
1 – 20nullable
maxSizeMb
1 – 100nullable
allowedTypes
nullable
yesLabel
max. 100 caractèresnullable
noLabel
max. 100 caractèresnullable
minLabel
max. 100 caractèresnullable
maxLabel
max. 100 caractèresnullable
rows
nullable
columns
nullable
allowMultiple
nullable
items
nullable
minItems
≥ 0nullable
maxItems
≥ 1nullable
addButtonLabel
max. 100 caractèresnullable
translations
nullable
skillId
Optional skill_definition UUID this question rates; used for explicit skill updates on ticket assignee
nullable
skillScoringMode
direct = higher answer means stronger skill; inverted = lower answer means stronger skill
Valeurs
directinvertednullnullable
logicRules
Par défaut : []
action
type
Valeurs
SHOWHIDEJUMP_TOEND_SURVEYtargetQuestionId
nullable
design
nullable
primaryColor
max. 20 caractèresnullable
backgroundColor
max. 20 caractèresnullable
backgroundImageUrl
nullable
logoUrl
nullable
fontFamily
Valeurs
defaultserifmononullable
showProgressBar
Par défaut : true
showQuestionNumbers
Par défaut : true
layout
Valeurs
ONE_PER_PAGEALL_AT_ONCESECTIONSPar défaut : "ALL_AT_ONCE"
colorMode
Valeurs
lightdarkautoPar défaut : "light"nullable
useTenantBranding
Par défaut : true
theme
Valeurs
defaultminimalvibrantnatureoceansunsetlavenderslatenullable
cardRadius
0 – 30nullable
buttonRadius
0 – 30nullable
distribution
nullable
publicSlug
3–100 caractèresnullable
allowAnonymous
Par défaut : true
requireAuth
Par défaut : false
oneResponsePerPerson
Par défaut : false
deduplicationField
Valeurs
emailuserIdipnonenullable
maxResponses
≥ 1nullable
password
max. 200 caractèresnullable
passwordHash
nullable
allowedDomains
nullable
embedEnabled
Par défaut : false
completion
nullable
thankYouTitle
max. 500 caractèresnullable
thankYouMessage
max. 5000 caractèresnullable
redirectUrl
max. 2000 caractèresnullable
showSummary
Par défaut : false
reminders
nullable
enabled
Par défaut : false
intervalDays
1 – 90nullable
maxReminders
1 – 10nullable
emailSubject
max. 200 caractèresnullable
emailBody
max. 5000 caractèresnullable
integration
nullable
triggerOnTicketClose
Par défaut : false
triggerTicketTypes
nullable
linkToPartyId
nullable
linkToContractId
nullable
languages
Par défaut : []
translations
nullable
responseCount
≥ 0Par défaut : 0
completionRate
0 – 100nullable
averageCompletionTimeSec
≥ 0nullable
npsScore
-100 – 100nullable
assignedToId
nullable
orgUnitId
nullable
tags
nullable
Aucun champ ne correspond au filtre.
Endpoints standard
Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :
GET /api/v1/surveys— Liste, paginée et filtrableGET /api/v1/surveys/<id>— Une entitéPOST /api/v1/surveys— CréerPATCH /api/v1/surveys/<id>— Mise à jour partielleDELETE /api/v1/surveys/<id>— Suppression logiqueGET /api/v1/surveys/<id>/timeline— Audit et activités