Entidad · surveys
Survey Schema
Campos
Survey Schema
Schema for survey/form definitions with embedded questions and logic
title
1–200 caracteres
description
máx. 5000 caracteresadmite null
descriptionHtml
admite null
status
Valores
DRAFTACTIVEPAUSEDCLOSEDARCHIVEDsurveyType
Valores
GENERALCSATNPSONBOARDINGSERVICE_REVIEWCUSTOMValor por defecto: "GENERAL"
surveyNumber
admite null
isTemplate
Valor por defecto: false
templateId
admite null
questions
Valor por defecto: []
sortOrder
≥ 0
type
Valores
SHORT_TEXTLONG_TEXTEMAILPHONEURLNUMBERSINGLE_CHOICEMULTIPLE_CHOICEDROPDOWNRATINGNPSDATEDATETIMEFILE_UPLOADYES_NOOPINION_SCALEMATRIXRANKINGLISTSTATEMENTTICKET_INFOPAGE_BREAKWELCOME_SCREENTHANK_YOU_SCREENrequired
Valor por defecto: false
title
1–2000 caracteres
description
máx. 5000 caracteresadmite null
descriptionHtml
admite null
placeholder
máx. 200 caracteresadmite null
mediaUrl
admite null
mediaType
Valores
IMAGEVIDEOadmite null
config
Type-specific configuration, discriminated by kind
admite null
kind
Valores
textnumberchoiceratingnpsdatefileUploadyesNoopinionScalematrixrankingliststatementmin
admite null
max
admite null
step
admite null
unit
máx. 50 caracteresadmite null
allowOther
admite null
randomize
admite null
maxRating
2 – 10admite null
icon
Valores
STARHEARTTHUMBNUMBERadmite null
includeTime
admite null
minDate
admite null
maxDate
admite null
maxFiles
1 – 20admite null
maxSizeMb
1 – 100admite null
allowedTypes
admite null
yesLabel
máx. 100 caracteresadmite null
noLabel
máx. 100 caracteresadmite null
minLabel
máx. 100 caracteresadmite null
maxLabel
máx. 100 caracteresadmite null
rows
admite null
columns
admite null
allowMultiple
admite null
items
admite null
minItems
≥ 0admite null
maxItems
≥ 1admite null
addButtonLabel
máx. 100 caracteresadmite null
translations
admite null
skillId
Optional skill_definition UUID this question rates; used for explicit skill updates on ticket assignee
admite null
skillScoringMode
direct = higher answer means stronger skill; inverted = lower answer means stronger skill
Valores
directinvertednulladmite null
logicRules
Valor por defecto: []
action
type
Valores
SHOWHIDEJUMP_TOEND_SURVEYtargetQuestionId
admite null
design
admite null
primaryColor
máx. 20 caracteresadmite null
backgroundColor
máx. 20 caracteresadmite null
backgroundImageUrl
admite null
logoUrl
admite null
fontFamily
Valores
defaultserifmonoadmite null
showProgressBar
Valor por defecto: true
showQuestionNumbers
Valor por defecto: true
layout
Valores
ONE_PER_PAGEALL_AT_ONCESECTIONSValor por defecto: "ALL_AT_ONCE"
colorMode
Valores
lightdarkautoValor por defecto: "light"admite null
useTenantBranding
Valor por defecto: true
theme
Valores
defaultminimalvibrantnatureoceansunsetlavenderslateadmite null
cardRadius
0 – 30admite null
buttonRadius
0 – 30admite null
distribution
admite null
publicSlug
3–100 caracteresadmite null
allowAnonymous
Valor por defecto: true
requireAuth
Valor por defecto: false
oneResponsePerPerson
Valor por defecto: false
deduplicationField
Valores
emailuserIdipnoneadmite null
maxResponses
≥ 1admite null
password
máx. 200 caracteresadmite null
passwordHash
admite null
allowedDomains
admite null
embedEnabled
Valor por defecto: false
completion
admite null
thankYouTitle
máx. 500 caracteresadmite null
thankYouMessage
máx. 5000 caracteresadmite null
redirectUrl
máx. 2000 caracteresadmite null
showSummary
Valor por defecto: false
reminders
admite null
enabled
Valor por defecto: false
intervalDays
1 – 90admite null
maxReminders
1 – 10admite null
emailSubject
máx. 200 caracteresadmite null
emailBody
máx. 5000 caracteresadmite null
integration
admite null
triggerOnTicketClose
Valor por defecto: false
triggerTicketTypes
admite null
linkToPartyId
admite null
linkToContractId
admite null
languages
Valor por defecto: []
translations
admite null
responseCount
≥ 0Valor por defecto: 0
completionRate
0 – 100admite null
averageCompletionTimeSec
≥ 0admite null
npsScore
-100 – 100admite null
assignedToId
admite null
orgUnitId
admite null
tags
admite null
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/surveys— Lista, paginada y filtrableGET /api/v1/surveys/<id>— Una entidadPOST /api/v1/surveys— CrearPATCH /api/v1/surveys/<id>— Actualización parcialDELETE /api/v1/surveys/<id>— Eliminación lógicaGET /api/v1/surveys/<id>/timeline— Auditoría y actividades