API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · ticket_types

Ticket Type Schema

ID du schéma
ticket_type
Collection
ticket_types
Autorisations
  • Lireticket_type_view
  • Créerticket_type_create
  • Modifierticket_type_edit
  • Supprimerticket_type_delete

Champs

Ticket Type Schema

ticket_types4 autorisations

Schema for validating ticket type (Ticket-Typ) entities

keystringfacultatif

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.

max. 40 caractèresMotifnullable
namestringobligatoire

Display label (e.g. Störung, Anfrage)

1–100 caractères
descriptionstringfacultatif

Short description shown in settings / tooltip

max. 500 caractèresnullable
colorstringfacultatif

Display color as hex (e.g. #18cc63)

Motifnullable
iconstringfacultatif

MUI icon name

max. 50 caractèresnullable
isActivebooleanobligatoire

Whether this ticket type is available for selection

Par défaut : true
isDefaultbooleanfacultatif

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.

Par défaut : false
sortOrderintegerfacultatif

Display sort order in UI dropdowns

≥ 0Par défaut : 0
defaultServiceTypeIduuidfacultatif

Default service type (Leistungstyp) pre-selected when recording time on a ticket of this type. Takes priority over the user lastServiceType preference.

nullable
keepTeamOnReassignmentbooleanfacultatif

When true, tickets of this type keep an already set orgUnitId: linking a customer or an automatic dispatch assignment does not move them to the customer’s / assignee’s team. An empty team is still filled.

Par défaut : false
skipCustomerApprovalbooleanfacultatif

When true, newly created tickets of this type skip the customer approval before processing (create-trigger approval policy) and start in the normal initial status. Tickets already waiting for approval are not affected.

Par défaut : false
skipCreateConfirmationbooleanfacultatif

When true, newly created tickets of this type send no customer confirmation (Eingangsbestätigung), even if the tenant-wide or the customer rule has it switched on. A person can still send it with "Jetzt senden".

Par défaut : false
defaultBudgetobjectfacultatif

Default budget cap auto-applied to tickets of this type on create

nullable
capMinutesintegerfacultatif

Default hard budget cap in minutes for tickets of this type. Mirrors ticket.budget.capMinutes.

≥ 0nullable
capDisplayUnitstringfacultatif

How the default cap was entered (round-trip). Mirrors ticket.budget.capDisplayUnit.

MINUTESHOURSEUR
nullable
capDisplayValuestringfacultatif

Original default cap value as entered. Mirrors ticket.budget.capDisplayValue.

Motifnullable
capHourlyRateEurstringfacultatif

Hourly rate used to convert an EUR default cap to minutes. Mirrors ticket.budget.capHourlyRateEur.

Motifnullable
lockStatusKeystringfacultatif

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.

max. 100 caractèresnullable
warnPercentintegerfacultatif

ADR 0549 — percentage of the cap at which the warning fires for tickets of this type. Wins over the tenant-wide default. Unset ⇒ tenant default ⇒ 80 %.

1 – 1000nullable
lockPercentintegerfacultatif

ADR 0549 — percentage of the cap at which tickets of this type lock. Wins over the tenant-wide default. Unset ⇒ tenant default ⇒ 100 %.

1 – 1000nullable

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/ticket_types — Liste, paginée et filtrable
  • GET /api/v1/ticket_types/<id> — Une entité
  • POST /api/v1/ticket_types — Créer
  • PATCH /api/v1/ticket_types/<id> — Mise à jour partielle
  • DELETE /api/v1/ticket_types/<id> — Suppression logique
  • GET /api/v1/ticket_types/<id>/timeline — Audit et activités

Recherche