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

Contract Type Schema

Schema-ID
contract_type
Collection
contract_types
Permissions
  • Lezencontract_type_view
  • Aanmakencontract_type_create
  • Wijzigencontract_type_edit
  • Verwijderencontract_type_delete

Velden

Contract Type Schema

contract_types4 permissions

Schema for validating contract type entities

namestringvereist

Contract type name

1–100 tekens
codestringvereist

Unique code identifier

1–20 tekensPattern
descriptionstringoptioneel

Contract type description

nullable
categorystringvereist

Contract category — MAINTENANCE or LICENSE (see contract schema for semantics).

MAINTENANCELICENSE
colorstringoptioneel

Display color (hex)

Patternnullable
iconstringoptioneel

Display icon identifier

nullable
defaultsobjectoptioneel

Default values applied when creating contracts of this type

nullable
billingCyclestringoptioneel
MONTHLYQUARTERLYSEMI_ANNUALYEARLYONE_TIMENONE
nullable
cancellationobjectoptioneel
nullable
noticePeriodDaysnumberoptioneel
≥ 0
extensionMonthsnumberoptioneel
≥ 0
autoRenewbooleanoptioneel
scopeobjectoptioneel
nullable
coverageTypestringoptioneel
ALL_ASSETSASSIGNED_ONLYCUSTOM
excludeAfterHoursbooleanoptioneel
excludeTravelbooleanoptioneel
serviceTargetProfileIduuidoptioneel

Default service target profile (ADR 0117a)

nullable
requiredFieldsstring[]optioneel

Fields required for contracts of this type

nullable
isActivebooleanvereist

Whether this contract type is active

sortOrdernumbervereist

Display sort order

≥ 0

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_types — Lijst, gepagineerd + filterbaar
  • GET /api/v1/contract_types/<id> — Enkele entity
  • POST /api/v1/contract_types — Aanmaken
  • PATCH /api/v1/contract_types/<id> — Gedeeltelijke update
  • DELETE /api/v1/contract_types/<id> — Soft-delete
  • GET /api/v1/contract_types/<id>/timeline — Audit + activiteiten

Zoeken