API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · tickets

Ticket Schema

ID del esquema
ticket
Colección
tickets
Permisos
  • Leerticket_view
  • Crearticket_create
  • Modificarticket_edit
  • Eliminarticket_delete

Campos

Ticket Schema

tickets4 permisos

Schema for validating ticket entities

titlestringobligatorio

The ticket title

1–500 caracteres
descriptionstringopcional

Detailed ticket description

admite null
descriptionHtmlstringopcional

Rich text HTML version of the ticket description

admite null
aiSummarystringopcional

Best-effort AI summary of the ticket content. Two writers: (a) the worker queue for imported external-master mirrors (e.g. TANSS — their description holds the raw source mail), rendered on the detail page; (b) create_ticket_from_email, which mirrors the summary it just wrote into `description` so it stays recognisable as machine-written text — not rendered for source EMAIL (the description already IS the summary). Null when AI is disabled for the tenant. Distinct from dispatch.aiSummary, which is an internal metadata field of the auto-dispatch pipeline and is not rendered.

solo lecturaadmite null
aiSummaryAttemptedAtdatetimeopcional

Set by the worker whenever an AI summary was attempted — even when the LLM returned nothing (AI off, content too short). Prevents the lazy on-open trigger from re-enqueuing the same ticket on every load.

solo lecturaadmite null
aiSummaryFailReasonstringopcional

Machine-readable reason why the last AI summary attempt produced nothing: disabled_by_admin | budget_blocked | no_account_no_fallback | account_unusable | too_short | truncated | model_empty | no_output | llm_error. Null on success. Exists so "why does this ticket show the raw mail?" is answerable from the record instead of only from the worker journal.

admite null
aiFeedSummaryobjectopcional

AI summary of the ticket CONVERSATION (description + messages), as opposed to `aiSummary` which only condenses the initial description. Written on demand by POST /tickets/:id/summary and cached until new messages arrive. Additive, no backfill — absent means "never requested".

solo lecturaadmite null
textstringopcional

The summary itself. Null when the last attempt produced nothing.

admite null
computedAtdatetimeopcional

When the summary was produced — rendered as a freshness stamp.

admite null
messageCountnumberopcional

How many messages the summary covers. The cache is stale as soon as the ticket holds more than this, which is what triggers a recompute.

admite null
includedInternalNotesbooleanopcional

Whether internal notes went into this summary. A cached summary built WITH internal notes must never be served to a caller lacking message_view_internal — it is recomputed for them instead.

admite null
failReasonstringopcional

Machine-readable reason the last attempt produced nothing: no_feed | too_short | model_empty | truncated | llm_error. Null on success.

admite null
statusstringobligatorio

Current ticket status

prioritystringobligatorio

Ticket priority level

LOWNORMALHIGHCRITICAL
partyIduuidopcional

Associated party UUID

admite null
partyAddressIduuidopcional

Specific site/address of the associated party

Valor por defecto: nulladmite null
contactPartyIduuidopcional

Associated contact person UUID

admite null
assignedToIduuidopcional

Assigned user UUID

admite null
dispatcherIduuidopcional

Human dispatcher responsible for this ticket (ADR 0260): the person who manually created/dispatched it or confirmed/overrode the AI dispatch. Null for pure AI auto-dispatch (no human dispatcher). Server-managed — drives the per-dispatcher Rückfragen-KPI (Dispo-Zielvereinbarung).

admite null
orgUnitIduuidopcional

Associated org unit UUID

admite null
handlingTierstringopcional

Current ownership tier: CUSTOMER (customer IT) or MSP. null/absent means MSP (legacy).

CUSTOMERMSPnull
solo lecturaadmite null
handedToCustomerAtdatetimeopcional

When the ticket was last handed to CUSTOMER (SLA pause start). Server-managed.

solo lecturaadmite null
slaPausedMsnumberopcional

Accumulated milliseconds the SLA clock was paused while the ticket sat at CUSTOMER. Server-managed.

solo lecturaadmite null
handoverPreviousAssigneeIdstringopcional

Assignee parked while the ticket sits at CUSTOMER; restored on hand-back. Server-managed.

solo lecturaadmite null
contractIduuidopcional

Associated contract UUID

admite null
projectIduuidopcional

Associated project UUID

admite null
salesOrderIduuidopcional

Linked sales_order UUID (the order this ticket originated from)

solo lecturaadmite null
salesOrderItemIdstringopcional

ID of the orderItem inside the linked sales_order (matches salesOrder.orderItems[].id)

solo lecturaadmite null
salesOrderItemSourcestringopcional

Origin of the linked sales-order item — internal or weclapp

internalweclappnull
solo lecturaadmite null
dueAtdatetimeopcional

Due date in ISO format

admite null
resolvedAtdatetimeopcional

Resolution date in ISO format

admite null
closedAtdatetimeopcional

Closure date in ISO format

admite null
statusChangedAtdatetimeopcional

Timestamp of the last status change (denormalized for time limit queries)

admite null
reopenedAtdatetimeopcional

Timestamp of the last reopen event (system or manual). Cleared on next non-reopen status change.

admite null
reopenedBystringopcional

User UUID of the actor who reopened the ticket, or one of the sentinel strings "system:auto_close_undo", "system:inbound_mail_ai", "system:inbound_mail_closed" for system-triggered reopens.

admite null
reopenReasonstringopcional

Why the ticket was reopened — drives UI banners and audit.

MANUALINBOUND_MAIL_AIINBOUND_MAIL_CLOSEDAUTO_CLOSE_UNDOnull
admite null
reopenedFromStatusstringopcional

The status the ticket was in immediately before being reopened.

admite null
lastReopenedAtdatetimeopcional

Timestamp of the most recent reopen (status change out of a resolved/closed lifecycle role, on every write path). Unlike `reopenedAt` it is never cleared. Server-stamped, stored as a BSON date like `createdAt`; drives the board sort "created / reopened" (`lastReopenedAt ?? createdAt`). Absent on tickets last reopened before the field existed.

solo lecturaadmite null
aiReopenDecisionstringopcional

Einstufung des Klassifikators, die zur Wiedereröffnung geführt hat.

thanksreopenunclearnull
solo lecturaadmite null
aiReopenConfidencenumberopcional

Konfidenz (0…1) der Einstufung zum Zeitpunkt der Wiedereröffnung.

0 – 1solo lecturaadmite null
aiReopenBasisstringopcional

Woraus sich die Wiedereröffnung ergab: Schwellwert erreicht ("threshold"), Tenant-Fallback bei Unsicherheit ("fallback") oder von einem Menschen bestätigt ("confirmed").

thresholdfallbackconfirmednull
solo lecturaadmite null
aiReopenConfirmedBystringopcional

User-UUID der Person, die die unsichere KI-Einstufung bestätigt hat (nur bei aiReopenBasis "confirmed").

solo lecturaadmite null
aiReopenSuggestionobjectopcional

Zustand der manuellen Bestätigung einer unsicheren KI-Einstufung.

solo lecturaadmite null
statusstringobligatorio

PENDING blockiert Auto-Close; alle anderen Werte sind Endzustände. Genau ein PENDING pro Ticket (neuere Mail aktualisiert das bestehende).

PENDINGCONFIRMEDDISMISSEDEXPIRED
decisionstringopcional
thanksreopenunclear
admite null
confidencenumberopcional
0 – 1admite null
reasoningstringopcional
admite null
modelNamestringopcional
admite null
emailMessageIdstringopcional
admite null
messageIdstringopcional
admite null
suggestedAtdatetimeopcional
admite null
expiresAtdatetimeopcional
admite null
taskIdstringopcional
admite null
decidedAtdatetimeopcional
admite null
decidedBystringopcional
admite null
closeEmailobjectopcional

Marker: die Abschluss-Mail dieses Schließ-Zyklus wurde bereits versendet (server-managed).

Valor por defecto: nullsolo lecturaadmite null
sentAtdatetimeobligatorio
sentBystringopcional
admite null
targetStatusstringopcional
admite null
unlinkedTicketRefobjectopcional

Im Betreff genannte, aber mangels Absenderbezug verworfene Ticketnummer (ADR 0604). Grundlage für den Zuordnungs-Vorschlag auf der Detailseite.

solo lecturaadmite null
ticketIdstringobligatorio

`tickets._id` des genannten Vorgangs.

ticketNumberstringobligatorio

Die Nummer, wie sie im Betreff stand (z. B. `ITF-2026-80295`).

solo lectura
reasonstringopcional

Warum der Vermerk entstand: `sender_unrelated` = Betreff nannte die Nummer, Absender ohne Bezug (ADR 0604); `same_sender_subject` = gleicher Absender und gleicher Betreff wie ein offenes Ticket, nur ein Duplikat-Hinweis (ADR 0827).

sender_unrelatedsame_sender_subjectnull
admite null
senderEmailstringopcional
admite null
detectedAtdatetimeopcional
admite null
followupOriginobjectopcional

Folge-Ticket wurde wie ein neues Mail-Ticket angelegt, weil das Projekt des Vorgängers nicht mehr lief (ADR 0966). Grundlage für den Hinweis auf der Detailseite.

solo lecturaadmite null
closedTicketIdstringobligatorio

`tickets._id` des geschlossenen Vorgängers.

closedTicketNumberstringopcional
admite null
reasonstringobligatorio

`project_not_running` = das Projekt des Vorgängers stand in einem Endstatus oder einem gewählten Status wie „In Abrechnung“.

project_not_running
projectIdstringopcional
admite null
projectNumberstringopcional
admite null
projectTitlestringopcional
admite null
projectStatusstringopcional

Roher Statusschlüssel des Projekts zum Zeitpunkt der Anlage.

admite null
decidedAtdatetimeopcional
admite null
tagsstring[]opcional

Ticket tags

Valor por defecto: []admite null
billingOverrideobjectopcional

ADR 0146 — explicit permission to invoice time bookings for this ticket while it is still open (e.g. customer ghosted). When `allowedWhileOpen` is true the billing-guard treats the ticket as billable. The reason is internal and propagates into the Leistungsnachweis snapshot, not onto the customer invoice.

Valor por defecto: nullsolo lecturaadmite null
allowedWhileOpenbooleanobligatorio
Valor por defecto: false
reasonstringopcional
máx. 1000 caracteresadmite null
allowedByuuidopcional
admite null
allowedAtdatetimeopcional
admite null
billingHoldobjectopcional

ADR 1209 — counterpart of billingOverride: keep time bookings of this OPEN ticket out of billing even though the customer or tenant bills open tickets (openTicketBilling = ALLOW), e.g. a warranty case. Ignored once the ticket is closed. Mutually exclusive with billingOverride. Set only via PUT /tickets/:id/billing-hold (permission ticket_billing_override); reason is internal.

Valor por defecto: nullsolo lecturaadmite null
heldbooleanobligatorio
Valor por defecto: false
reasonstringopcional
máx. 1000 caracteresadmite null
heldByuuidopcional
admite null
heldAtdatetimeopcional
admite null
standaloneBillingobjectopcional

ADR 0274 — mark this ticket for STANDALONE billing: its billable time is carved out of the customer collective Leistungsnachweis (and, if the ticket belongs to a project, out of the project LN too) and billed on its own via POST /tickets/:id/generate-performance-record. `enabledBy`/`enabledAt` and the `performanceRecord*`/`invoicedAt` back-references are set server-side only. Set via PUT /tickets/:id/standalone-billing (permission `ticket_billing_override`).

Valor por defecto: nulladmite null
enabledbooleanobligatorio
Valor por defecto: false
reasonstringopcional
máx. 1000 caracteresadmite null
enabledByuuidopcional
solo lecturaadmite null
enabledAtdatetimeopcional
solo lecturaadmite null
performanceRecordIduuidopcional
solo lecturaadmite null
performanceRecordNumberstringopcional
solo lecturaadmite null
invoicedAtdatetimeopcional
solo lecturaadmite null
difficultyintegeropcional

Ticket difficulty (0–100). Feeds the XP award formula on close. Defaults to 50 at award time if null.

0 – 100admite null
requiredSkillsobject[]opcional

Structured skill requirements for dispatch matching

Valor por defecto: []admite null
skillIduuidobligatorio

UUID of the skill_definition

minimumLevelstringopcional

Minimum proficiency level required. Null = any level.

BEGINNERINTERMEDIATEADVANCEDEXPERTnull
admite null
sourcestringopcional

How this skill requirement was added. ASSET_DERIVED = auto-derived from the customer's assets (CMDB) via skill assetMatchRules.

MANUALAI_DETECTEDASSET_DERIVED
Valor por defecto: "MANUAL"
communicationLanguagestringopcional

Explicitly chosen language for customer-facing ticket communication (ADR 0875). null = derived from contact/site/customer/tenant.

deenesfrnlnull
admite null
detectedLanguagestringopcional

Automatically detected language of the ticket content (ISO 639-1, via fastText lid.176)

aaabaeafakamanarasavayazbabebgbhbibmbnbo
admite null
detectedLanguageConfidencenumberopcional

Detection confidence (0..1). Used with LANGUAGE_DETECTION_CONFIDENCE_THRESHOLD

0 – 1admite null
detectedLanguageAtdatetimeopcional

Timestamp of the last language detection run

admite null
attachmentsobject[]opcional
Valor por defecto: []admite null
s3Keystringobligatorio
fileNamestringobligatorio
mimeTypestringobligatorio
sizeBytesnumberobligatorio
≥ 0
uploadedAtdatetimeobligatorio
uploadedByuuidobligatorio
isInternalbooleanobligatorio
linkedEntitiesobject[]opcional
Valor por defecto: []admite null
entityTypestringobligatorio
partyassetticketcontractprojectuseropportunitycomplaintmanaged_event
entityIduuidobligatorio
rolestringobligatorio
convertedToobjectopcional

Set when this ticket was converted to another entity (opportunity/complaint). Seit ADR 0548 wird das Quell-Ticket dabei soft-geloescht, WENN nichts daran haengt, das am Ziel nicht abbildbar ist. Haengt etwas dran, bleibt es erhalten, wird auf den Endstatus gesetzt und `retainedBecause` nennt den Grund. Written only by the conversion routes.

solo lecturaadmite null
entityTypestringobligatorio
ticketopportunitycomplaint
entityIduuidobligatorio
convertedAtdatetimeopcional
admite null
convertedBystringopcional
admite null
retainedBecauseobject[]opcional
admite null
collectionstringobligatorio
countintegerobligatorio
≥ 1
morebooleanopcional
admite null
convertedFromobjectopcional

Set when this ticket was created by converting another entity (opportunity/complaint). Written only by the conversion routes.

solo lecturaadmite null
entityTypestringobligatorio
ticketopportunitycomplaint
entityIduuidobligatorio
convertedAtdatetimeopcional
admite null
convertedBystringopcional
admite null
contractPositionRefobjectopcional

Reference to a contract position this ticket relates to

admite null
contractIdstringopcional
positionUuidstringopcional
positionTitlestringopcional
admite null
contactPartyNamestringopcional

Contact person name (used when contactPartyId is not available)

admite null
contactChannelstringopcional

Channel through which the ticket was reported

PHONEEMAILPORTALON_SITEREMOTETEAMSOTHER
admite null
ticketTypestringopcional

Ticket type — references the `key` of a ticket_type entity (e.g. INCIDENT, REPAIR). Configurable per tenant; no longer a fixed enum.

máx. 40 caracteresadmite null
extTicketIdstringopcional

External ticket reference ID

admite null
estimatedMinutesintegeropcional

Estimated work time in minutes

≥ 0admite null
respondedAtdatetimeopcional

Timestamp of the first agent response (drives time_to_first_response targets, ADR 0117a)

admite null
inboundReplyAckedAtdatetimeopcional

Timestamp at which the latest inbound customer email was acknowledged as "handled, no reply needed". Clears the awaiting-reply badge when >= the last inbound email time; a newer inbound email re-arms the badge.

admite null
inboundReplyAckedBystringopcional

User who acknowledged the latest inbound customer email (see inboundReplyAckedAt).

admite null
commentsAckedAtdatetimeopcional

Timestamp at which new comments on this ticket were acknowledged as seen. Clears the comment badge (speech bubble) on the board card and in the ticket list; a newer comment re-arms it. Deliberately SEPARATE from inboundReplyAckedAt: the card shows two pills (envelope = unanswered customer mails, bubble = new comments) and each acknowledges only its own — a shared stamp would mean clicking one pill silently clears the other. Team-wide, not per user (same shared-inbox philosophy as the mail badge). Nullable, no backfill: a missing stamp counts every comment inside the 90-day window.

admite null
commentsAckedBystringopcional

User who acknowledged the new comments (see commentsAckedAt).

admite null
awaitingReplyPinnedAtdate-time[]opcional

Timestamps of unanswered inbound customer emails that were carried over by a merge and that the standard computation can no longer see. The awaiting-reply badge derives from "inbound emails newer than the last OUTBOUND email of the record" — after a merge that comparison spans two formerly independent conversations, so a reply in one thread silently marks an open question in the other as answered. The merge therefore pins the affected timestamps here; the badge counts them in addition to the computed ones. Cleared by ack-inbound-reply. Server-managed (see merge.service.ts).

admite null
targetsobject[]opcional

Denormalized active service targets (ADR 0117a)

admite null
stageIdstringobligatorio
stageKindstringobligatorio
time_to_first_responsetime_in_statustime_to_statustime_to_close
stageStatusstringopcional
admite null
stageLabelstringopcional
admite null
bindingnessstringobligatorio
contractualinternal
deadlinedatetimeobligatorio
breachedAtdatetimeopcional
admite null
completedAtdatetimeopcional
admite null
profileIduuidobligatorio
mergedIntoTicketIduuidopcional

If set, this ticket was merged into the referenced ticket

admite null
mergedIntoTicketNumberstringopcional

Ticket number of the ticket this was merged into (denormalized for display)

admite null
linkedRiskIdsstring[]opcional

Linked risk IDs

Valor por defecto: []
incidentDataobjectopcional
admite null
incidentTypestringopcional
DATA_BREACHUNAUTHORIZED_ACCESSMALWAREPHISHINGDOSINSIDER_THREATSUPPLY_CHAINOTHER
severitystringopcional
CRITICALHIGHMEDIUMLOW
detectedAtdatetimeopcional
admite null
containedAtdatetimeopcional
admite null
resolvedAtdatetimeopcional
admite null
affectedDataCategoriesstring[]opcional
Valor por defecto: []
affectedPersonCountnumberopcional
admite null
rootCausestringopcional
admite null
lessonsLearnedstringopcional
admite null
timelineobject[]opcional
Valor por defecto: []
timestampdatetimeobligatorio
actionstringobligatorio
userIdstringobligatorio
descriptionstringobligatorio
linkedAssetIdsstring[]opcional
Valor por defecto: []
linkedRiskIdsstring[]opcional
Valor por defecto: []
breachNotificationsobject[]opcional
Valor por defecto: []
notificationTypestringobligatorio
DSGVO_ART33_AUTHORITYDSGVO_ART34_DATA_SUBJECTSNIS2_EARLY_WARNINGNIS2_NOTIFICATIONNIS2_FINAL_REPORTBSI_NOTIFICATION
statusstringobligatorio
DRAFTPENDING_REVIEWSUBMITTEDACKNOWLEDGED
recipientDetailsstringobligatorio
dueAtdatetimeobligatorio
submittedAtdatetimeopcional
admite null
contentMarkdownstringobligatorio
dmsDocumentIdstringopcional
admite null
serviceBlockExemptionobjectopcional

Lifts the customer's service block (Leistungssperre) for this ticket only (ADR 0815). Writable only with the party_block permission; grantedAt/grantedBy are server-set. The customer's block itself stays in place.

admite null
activebooleanopcional
reasonstringopcional
máx. 500 caracteresadmite null
grantedAtstringopcional
admite null
grantedBystringopcional
admite null
budgetobjectopcional

Budget control: billing type, caps, consumed time, and lock state

admite null
billingTypestringopcional

Ticket billing model

TIME_AND_MATERIALFIXED_PRICENOT_BILLABLE
Valor por defecto: "TIME_AND_MATERIAL"
fixedPriceAmountstringopcional

Fixed price amount in EUR (when billingType is FIXED_PRICE)

Patrónadmite null
capMinutesintegeropcional

Hard budget cap in minutes. When reached, ticket is locked.

≥ 0admite null
capDisplayUnitstringopcional

How the cap was originally entered (MINUTES, HOURS or EUR). capMinutes stays the canonical value; this field lets the UI round-trip the input without precision loss.

MINUTESHOURSEUR
admite null
capDisplayValuestringopcional

Original cap value as entered, matched to capDisplayUnit. Stored as a decimal string to avoid float rounding (e.g. "2.5" hours or "199.99" EUR).

Patrónadmite null
capHourlyRateEurstringopcional

Hourly rate (EUR/h) used to convert capDisplayValue to capMinutes when capDisplayUnit=EUR. Frozen at the moment the cap was set so later rate changes do not silently re-interpret the cap.

Patrónadmite null
consumedMinutesintegeropcional

Denormalized sum of all time record durationMinutes for this ticket

≥ 0Valor por defecto: 0solo lectura
lockedbooleanopcional

Whether the ticket is budget-locked (cap reached)

Valor por defecto: falsesolo lectura
lockedAtdatetimeopcional

When the budget lock was engaged

solo lecturaadmite null
lockedReasonstringopcional

Reason the budget was locked (auto or manual)

máx. 500 caracteressolo lecturaadmite null
unlockRequestIduuidopcional

Pending approval request ID for budget unlock

solo lecturaadmite null
lockStatusKeystringopcional

ADR 0223 — resolved at create from the ticket type / tenant default: the status the ticket is auto-transitioned into when the cap is reached. Null = no auto status change (only budget.locked is set).

máx. 100 caracteresadmite null
warnPercentintegeropcional

ADR 0549 — percentage of capMinutes at which the budget WARNING notification fires. Resolved at create from the ticket type / tenant default and stamped here, so changing the default later does not reinterpret running tickets. Null ⇒ 80 % (the pre-0544 hard-coded value).

1 – 1000admite null
lockPercentintegeropcional

ADR 0549 — percentage of capMinutes at which the ticket LOCKS. Null ⇒ 100 % (the pre-0544 behaviour). Below 100 keeps a buffer for customer consultation; above 100 tolerates a defined overrun.

1 – 1000admite null
capHistoryobject[]opcional

History of budget cap changes

Valor por defecto: []solo lectura
previousCapintegerobligatorio
admite null
newCapintegerobligatorio
changedAtdatetimeobligatorio
changedBystringobligatorio
Patrón
approvalRequestIdstringopcional
admite null
reasonstringopcional
admite null
timeRecordIdstringopcional
admite null
dispatchobjectopcional

Auto-dispatch metadata set by the AI dispatch pipeline

solo lecturaadmite null
dispatchDecisionIduuidopcional
admite null
dispatchedAtdatetimeopcional
admite null
dispatchStatusstringopcional
PENDINGDISPATCHEDSUGGESTEDMANUAL_OVERRIDEFAILED
admite null
aiSummarystringopcional
solo lecturaadmite null
aiCategorystringopcional
admite null
aiEstimatedMinutesintegeropcional
≥ 0admite null
aiConfidencenumberopcional
0 – 1admite null
sourcestringopcional

Herkunftsmarker (EMAIL, M365_OUTLOOK, TANSS, …). Zwei Bedeutungen, die zusammenfallen: WOHER der Datensatz kam und — falls der Wert einem `externalMaster`-Provider entspricht — WER ihn führt. Ein Ticket mit `source: "TANSS"` ist ein read-only Spiegel (ADR 0377): Bearbeitungsversuche scheitern mit 423, gepflegt wird es ausschließlich vom Sync. Der Guard wirkt PRO DOKUMENT — in Codemeta angelegte Tickets tragen kein `source` und bleiben uneingeschränkt bearbeitbar, obwohl sie in derselben Collection liegen. Die Sperre lässt sich pro Ticket aufheben, ohne die Herkunft zu verfälschen: `externalOwnership: "LOCAL"` (ADR 0432) übernimmt den Vorgang nach Codemeta — `source` bleibt dann als Herkunftsangabe stehen, führt aber nicht mehr. Vorher wurde das Feld bereits ad hoc geschrieben (EMAIL/M365_OUTLOOK), war aber nie deklariert — bei `additionalProperties: false` konnte es über validierte Pfade nicht gesetzt werden.

máx. 50 caracteresValor por defecto: nulladmite null
suppressCreateConfirmationbooleanopcional

Unterdrückt die Ticket-Eingangsbestätigung an den Kunden (`ticket_created`-Mail) für genau dieses Ticket, auch wenn eine Benachrichtigungsregel (approval_policy, ADR 0458) greifen würde. Wird von der Erstell-Maske gesetzt („Eingangsbestätigung senden" abgewählt), z. B. wenn der Kunde bereits am Telefon informiert wurde oder das Ticket rein intern angelegt wird. Bei Mail-Tickets setzt es auch die greifende E-Mail-Regel (`overrides.suppressCreateConfirmation`, z. B. für Monitoring-Absender). Nur beim Anlegen ausgewertet (`afterCreate`), danach reine Dokumentation. Fehlt das Feld (Altbestand), gilt `false` — kein Backfill nötig.

Valor por defecto: false
externalOwnershipstringopcional

Übernahme eines Fremdsystem-Spiegels in die lokale Verantwortung (ADR 0432). `"LOCAL"` hebt die read-only-Sperre aus ADR 0377 auf: das Ticket bleibt formal ein TANSS-Ticket (`source`/`sourceRef` bleiben erhalten, der Deeplink funktioniert weiter), wird aber ab jetzt in Codemeta zu Ende bearbeitet und vom TANSS-Sync nicht mehr angefasst. In TANSS trägt der Vorgang dann den Tag "CodemetaOS". Fehlt das Feld (Altbestand), gilt der Datensatz weiter als Spiegel — kein Backfill nötig. Nur über POST /tickets/:id/takeover setzbar (in `protectedFields`), niemals per generischem PATCH.

LOCALnull
Valor por defecto: nullsolo lecturaadmite null
externalOwnershipTakenAtdatetimeopcional

Zeitpunkt der Übernahme (ADR 0432).

Valor por defecto: nullsolo lecturaadmite null
externalOwnershipTakenBystringopcional

Interne User-Id, die die Übernahme ausgelöst hat (ADR 0432).

Valor por defecto: nullsolo lecturaadmite null
externalOwnershipTagstringopcional

Name des Tags, der bei der Übernahme im Fremdsystem gesetzt wurde (ADR 0432). Belegt, dass die Gegenseite markiert ist — die Übernahme wird nur bei Erfolg vollzogen. `null` BEI GESETZTEM `externalOwnership: "LOCAL"` ist die eine dokumentierte Ausnahme (ADR 0457): der Vorgang existierte im Fremdsystem nicht mehr, konnte deshalb nicht markiert werden, und die Übernahme wurde nach ausdrücklicher Bestätigung trotzdem vollzogen. Bei fehlendem `externalOwnership` heißt `null` schlicht „nie übernommen".

Valor por defecto: nullsolo lecturaadmite null
sourceUrlstringopcional

Direktverweis auf den Datensatz in der Oberfläche des führenden Fremdsystems (ADR 0362/0377). Wird beim Spiegeln einmal mitgeschrieben, weil der Host nur in `integration_configs` steht — Daten, die die Ticketseite nicht lädt und ein Techniker nicht zwingend lesen darf. Fehlt das Feld (ältere Spiegel), zeigt die Oberfläche schlicht keinen Link — kein Backfill nötig.

Valor por defecto: nulladmite null
sourceRefobjectopcional

Reference to the source system this entity was imported from

Valor por defecto: nulladmite null
systemstringobligatorio

Source system identifier (e.g. tanss, weclapp)

idstringobligatorio

Entity ID in the source system

satisfactionobjectopcional

Customer satisfaction rating for this ticket, populated from survey responses

Valor por defecto: nulladmite null
scorenumberobligatorio

Raw score value (1-5 for CSAT, 0-10 for NPS)

scoreTypestringobligatorio

Type of satisfaction score

CSATNPS
normalizedScorenumberopcional

Score normalized to 0-100 scale for aggregation

0 – 100admite null
commentstringopcional

Optional free-text comment from the respondent

máx. 4000 caracteresadmite null
responseIduuidobligatorio

UUID of the linked survey_response

invitationIduuidopcional

UUID of the survey_invitation that produced this response

admite null
surveyIduuidopcional

UUID of the survey used

admite null
submittedAtdatetimeobligatorio

When the response was submitted

respondentContactIduuidopcional

Contact person UUID who submitted the response

admite null
skillImpactobject[]opcional

Audit of skill level deltas applied to the assignee from this response

Valor por defecto: []admite null
skillIduuidobligatorio
deltaintegerobligatorio
-101
sourcestringopcional

Which mapping produced this impact

required_skillssurvey_question
appliedToUserIduuidopcional
admite null
suitableForInternbooleanopcional

Whether this ticket is appropriate for an intern/junior to work on (auto-set when difficulty < 30; manual override possible)

admite null
parentIncidentIduuidopcional

Parent major incident this ticket is grouped under

admite null
problemIduuidopcional

Problem record this ticket is linked to (server-managed)

solo lecturaadmite null
resolutionobjectopcional

Internal resolution description (never sent to the customer, server-managed).

Valor por defecto: nullsolo lecturaadmite null
symptomstringobligatorio
máx. 1000 caracteres
causestringobligatorio
máx. 2000 caracteresadmite null
causeUnknownReasonstringopcional
máx. 500 caracteresadmite null
stepsstringobligatorio
máx. 4000 caracteres
kindstringobligatorio
fixworkaroundno_faultnot_reproducibleno_responseduplicateout_of_scope
sourcestringobligatorio
manualai_draftai_draft_editedsystemauto
reviewobjectopcional
admite null
verdictstringobligatorio
acceptedneeds_workoverriddenunreviewed
questionsstring[]opcional
máx. 3 elementos
overrideReasonstringopcional
máx. 500 caracteresadmite null
reviewedAtdatetimeobligatorio
writtenBystringopcional
admite null
writtenAtdatetimeobligatorio
snoozedUntildatetimeopcional

Ticket is snoozed until this timestamp; hidden from active queues

admite null
snoozedByuuidopcional

User who snoozed the ticket

admite null
snoozedAtdatetimeopcional

When the ticket was snoozed

admite null
snoozeReasonstringopcional

Reason provided when snoozing

máx. 500 caracteresadmite null
fastLaneOverridestringopcional

Manual fast-lane decision: IN forces the ticket into the lane, OUT keeps it out regardless of the estimate. Server-managed via POST /tickets/:id/fast-lane/override.

INOUTnull
solo lecturaadmite null
fastLaneOverrideBystringopcional

User who made the manual fast-lane decision. Server-managed.

solo lecturaadmite null
fastLaneOverrideAtdatetimeopcional

When the manual fast-lane decision was made. Server-managed.

solo lecturaadmite null
customerFollowupobjectopcional

Customer follow-up state of the current waiting phase. Only valid while forStatusChangedAt equals statusChangedAt, so a new waiting phase starts over without a reset write. Server-managed.

solo lecturaadmite null
forStatusChangedAtdatetimeopcional
sentCountintegeropcional
≥ 0
lastSentAtdatetimeopcional
admite null
pausedAtdatetimeopcional
admite null
pausedBystringopcional
admite null
suggestedTemplateIdsuuid[]opcional

Top-N task_template IDs suggested by the dispatcher (ADR 0138 Hook A). Server-managed via /suggest-templates endpoint.

Valor por defecto: []admite null
appliedTemplateIdsuuid[]opcional

task_template IDs that have been applied to this ticket (used by skill-aware dispatch in Hook B).

Valor por defecto: []admite null
suggestionsComputedAtdatetimeopcional

When the template suggestion pipeline last ran for this ticket.

admite null

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/tickets — Lista, paginada y filtrable
  • GET /api/v1/tickets/<id> — Una entidad
  • POST /api/v1/tickets — Crear
  • PATCH /api/v1/tickets/<id> — Actualización parcial
  • DELETE /api/v1/tickets/<id> — Eliminación lógica
  • GET /api/v1/tickets/<id>/timeline — Auditoría y actividades

Búsqueda