API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · contract_ticket_rules

Contract Ticket Rule Schema

Schema-ID
contract_ticket_rule
Collection
contract_ticket_rules
Permissions
  • Lezencontract_ticket_rule_view
  • Aanmakencontract_ticket_rule_create
  • Wijzigencontract_ticket_rule_edit
  • Verwijderencontract_ticket_rule_delete

Velden

Contract Ticket Rule Schema

contract_ticket_rules4 permissions

ADR 0439 — tenant-wide rule that turns activated contract positions into recurring tickets (interval + lead time + ticket template + checklist/task templates).

namestringvereist

Rule name (shown in settings and on the contract Tickets tab).

1–200 tekens
descriptionstringoptioneel

Optional internal note on what this rule covers.

max. 2000 tekensDefault: nullnullable
isActivebooleanoptioneel

Inactive rules are neither suggested nor executed; existing activations on contracts stay dormant until the rule is reactivated.

Default: true
matchArticleIdsuuid[]optioneel

Catalog articles that suggest this rule for a contract position (matched against position.articleId on both items[] and licensePositions[]). Positions without an articleId can only be activated manually.

Default: []
intervalstringvereist

Recurring cadence between due dates. Recurring subset of the contract-item interval enum (no ONE_TIME/NONE/DAILY — a rule always recurs).

WEEKLYMONTHLYQUARTERLYSEMI_ANNUALYEARLYTWO_YEARLYTHREE_YEARLY
leadDaysintegeroptioneel

Days before the due date the ticket is created (ticket.dueAt stays the due date). 0 = create on the due date.

0 – 365Default: 0
ticketTemplateobjectvereist

Template for the generated ticket. `title` and `descriptionHtml` support the placeholders {contract.name}, {contract.contractNumber}, {position.name}, {party.name} and {dueDate}.

titlestringvereist

Ticket title template (placeholders allowed).

1–500 tekens
descriptionHtmlstringoptioneel

Ticket description template, HTML (placeholders allowed).

max. 50000 tekensDefault: nullnullable
prioritystringoptioneel

Priority of the generated ticket.

LOWNORMALHIGHCRITICAL
Default: "NORMAL"
ticketTypestringoptioneel

Ticket type key (references a ticket_type entity, tenant-configurable). null = tenant default.

max. 40 tekensDefault: nullnullable
orgUnitIdstringoptioneel

Team (org unit) the generated ticket is routed to. Assignment comes from the rule, not the contract (ADR 0439, decision 5).

PatternDefault: nullnullable
assignedToIdstringoptioneel

Optional fixed assignee for the generated ticket.

PatternDefault: nullnullable
checklistTemplateIdsuuid[]optioneel

checklist_template ids instantiated onto the generated ticket (spawnChecklistFromTemplate, best-effort).

Default: []
taskTemplateIdsuuid[]optioneel

task_template ids instantiated onto the generated ticket (internal API bridge, flat-task fallback, best-effort).

Default: []

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/contract_ticket_rules — Lijst, gepagineerd + filterbaar
  • GET /api/v1/contract_ticket_rules/<id> — Enkele entity
  • POST /api/v1/contract_ticket_rules — Aanmaken
  • PATCH /api/v1/contract_ticket_rules/<id> — Gedeeltelijke update
  • DELETE /api/v1/contract_ticket_rules/<id> — Soft-delete
  • GET /api/v1/contract_ticket_rules/<id>/timeline — Audit + activiteiten

Zoeken