Ticket Type Schema
Felder
Ticket Type Schema
Schema for validating ticket type (Ticket-Typ) entities
key
Machine key stored on tickets (e.g. INCIDENT, REPAIR). Used for SLA tier matching and worker classification. Defaults to a slug derived from the name when omitted.
name
Display label (e.g. Störung, Anfrage)
description
Short description shown in settings / tooltip
color
Display color as hex (e.g. #18cc63)
icon
MUI icon name
isActive
Whether this ticket type is available for selection
isDefault
Whether this is the tenant-level default ticket type pre-selected when creating a ticket. Only one ticket type per tenant should be the default.
sortOrder
Display sort order in UI dropdowns
defaultServiceTypeId
Default service type (Leistungstyp) pre-selected when recording time on a ticket of this type. Takes priority over the user lastServiceType preference.
defaultBudget
Default budget cap auto-applied to tickets of this type on create
capMinutes
Default hard budget cap in minutes for tickets of this type. Mirrors ticket.budget.capMinutes.
capDisplayUnit
How the default cap was entered (round-trip). Mirrors ticket.budget.capDisplayUnit.
MINUTESHOURSEURcapDisplayValue
Original default cap value as entered. Mirrors ticket.budget.capDisplayValue.
capHourlyRateEur
Hourly rate used to convert an EUR default cap to minutes. Mirrors ticket.budget.capHourlyRateEur.
lockStatusKey
Optional ticket status the ticket is auto-transitioned into when the cap is reached (the "locked" status). Must be a known status of the ticket workflow. Falls back to the tenant-wide default when unset.
Keine Felder passen zum Filter.
Standard-Endpoints
Diese Resource folgt dem generischen CRUD-Vertrag der Plattform. Lesen Sie die Konventionen für Pagination, Idempotenz, Optimistic Locking und Audit. Die wichtigsten Endpoints:
GET /api/v1/ticket_types— Liste, paginiert + filterbarGET /api/v1/ticket_types/<id>— Einzelne EntityPOST /api/v1/ticket_types— AnlegenPATCH /api/v1/ticket_types/<id>— Teil-UpdateDELETE /api/v1/ticket_types/<id>— Soft-DeleteGET /api/v1/ticket_types/<id>/timeline— Audit + Aktivitäten