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

Project Schema

ID du schéma
project
Collection
projects
Autorisations
  • Lireproject_view
  • Créerproject_create
  • Modifierproject_edit
  • Supprimerproject_delete
Relations

Champs

Project Schema

projects4 autorisations

Schema for validating project entities

titlestringobligatoire

Project title

1–200 caractères
descriptionstringfacultatif

Project description

max. 2000 caractèresnullable
statusstringobligatoire

Project status. Tenant-configurable via the workflow editor — the base workflow defines PLANNED, ACTIVE, IN_REVIEW, ON_HOLD, COMPLETED, CANCELLED.

min. 1 caractères
startDatedatefacultatif

Project start date (YYYY-MM-DD). Together with endDate: endDate must be on or after startDate (projectEndBeforeStart — JSON Schema cannot compare the two).

nullable
endDatedatefacultatif

Project end date (YYYY-MM-DD). Must be on or after startDate when both are set (projectEndBeforeStart). A PATCH that sends only one of the two is checked against the stored value.

nullable
budgetstringfacultatif

Project budget as a non-negative decimal string with at most two fraction digits (no sign, no thousands separator).

Motifnullable
managerIduuidfacultatif

Project manager user UUID

nullable
previousManagerIduuidfacultatif

ADR 0895 — who was project manager before the tech-review handover moved `managerId` to the team lead. Written only by project-review-manager-handover.service.ts. Makes undoing the handover a single click and answers "who had it before?" without reading the history. Absent on every project that never went through the (opt-in) handover — runtime fallback, no backfill.

lecture seulenullable
orgUnitIduuidfacultatif

Organisational unit (department / team) the project is organisationally located in.

nullable
teamUserIdsuuid[]facultatif

Internal users that make up the project team (independent of orgUnitId). Used for team_member data scope, task filters and notifications.

Par défaut : []nullable
partyIduuidfacultatif

Associated party UUID

nullable
partyAddressIduuidfacultatif

Specific site/address of the associated party

Par défaut : nullnullable
contactPartyIduuidfacultatif

Contact person on the customer side (PERSON party linked to `partyId` via party_relationships, or the customer itself for a private customer). Optional, no backfill: absent = no contact. Validated and cleared on a customer change by the project hooks (project-contact.ts). Does NOT grant portal access and is not used as orderer on performance records.

nullable
contractIduuidfacultatif

Associated contract UUID

nullable
parentProjectIduuidfacultatif→ project

ADR 1128 — Hauptprojekt dieses Projekts. Höchstens zwei Ebenen unter dem obersten Projekt, kein Zyklus, selber Mandant (geprüft im Projekt-Hook). ABSENT/null = eigenständiges Projekt; zeigt es auf ein gelöschtes Projekt, gilt es ebenfalls als eigenständig — kein Backfill.

nullable
colorstringfacultatif

ADR 1128 §7 — Farbe des Projekts als Unterprojekt (Herkunfts-Chip, zentrales Board). Schlüssel aus einer festen Palette ohne Rot/Gelb/Grün; `none` = bewusst keine Farbe. ABSENT/null = automatisch: beim Zuordnen die nächste unter den Geschwistern freie, sonst Rückfall nach Reihenfolge der Projektnummern.

bluepurpletealpinkindigocyanbrownslatenonenull
nullable
subProjectColorsbooleanfacultatif

ADR 1128 §7 — Schalter am Hauptprojekt „Farben für Unterprojekte“. `false` = alle Unterprojekte erscheinen in seiner Sammelsicht ohne Farbe, und es vergibt keine automatischen Farben. ABSENT/null/true = an.

nullable
standaloneBillingobjectfacultatif

ADR 0274 — STANDALONE billing for this project. When enabled, all billable time of this project (direct PROJECT bookings + its tickets + its tasks) is carved out of the customer collective Leistungsnachweis and billed as its own project LN via POST /projects/:id/generate-performance-record. NEW projects default to enabled=true (materialised at create). Projects with this object ABSENT count as standalone too (ADR 0417, `isProjectStandalone`: only a literal `enabled: false` is collective) — production-safe, no backfill. `performanceRecord*`/`invoicedAt` back-references are server-set only.

Par défaut : {}nullable
enabledbooleanobligatoire
Par défaut : true
performanceRecordIduuidfacultatif
lecture seulenullable
performanceRecordNumberstringfacultatif
lecture seulenullable
invoicedAtdatetimefacultatif
lecture seulenullable
contractCoverageobjectfacultatif

Projektdeckung durch den Wartungsvertrag (ADR 1055, Spec full-service-project-services, ergänzt ADR 0569 §1). `enabled: true` hebt NUR die Deckungssperre für Projektarbeit auf: Buchungen dieses Projekts werden beim Genehmigen wie Ticketbuchungen gegen die Verträge des Kunden aufgelöst — ausschliesslich mit Deckung INCLUDED (Pauschale), nie Kontingent oder Vertragssatz — und gehen dann nicht in den weclapp-Auftrag. Abrechnungseinheit (ADR 0417) und Positionspflicht bleiben. ABSENT/null = aus = Verhalten nach ADR 0569, kein Backfill. Gesetzt vom Auftrags-Import (source ORDER_INTAKE, wenn der Kunde einen Full-Service-Vertrag hat) oder über POST /projects/:id/contract-coverage (MANUAL). Geschütztes Feld: nur diese Route schreibt es, weil die Umstellung Neuauflösung und weclapp-Rückzug in einer Bewegung braucht.

lecture seulenullable
enabledbooleanobligatoire
sourcestringfacultatif
ORDER_INTAKEMANUALnull
nullable
setBystringfacultatif
nullable
setAtdatetimefacultatif
nullable
offeredTravelobjectfacultatif

ADR 1096 — die im weclapp-Auftrag angebotene Fahrtzeile (Fahrt-Artikel der Abrechnungseinstellungen ohne Fahrtzeit, Netto > 0 €, nicht von Codemeta geschrieben), beim ersten Treffer festgehalten. Damit gehen die Fahrten vertragsgedeckter Buchungen dieses Projekts in den weclapp-Auftrag, ihre Zeit bleibt auf dem Vertrag (ergänzt ADR 1055 §5 „Fahrten folgen der Buchung“). Eingefroren, weil die Auftragsbearbeitung die Angebotszeile beim Abrechnen in weclapp löscht und der nächste Push die übertragenen Fahrten sonst wieder herauszöge. ABSENT/null = live aus dem Auftragsspiegel erkennen, kein Backfill. Geschütztes Feld: geschrieben nur vom weclapp-Push und von POST /projects/:id/contract-coverage, geleert nur vom Notausgang POST /projects/:id/offered-travel/detection (ADR 1096 §8).

lecture seulenullable
salesOrderItemIdstringfacultatif
nullable
weclappItemIdstringfacultatif
nullable
positionNumberintegerfacultatif
nullable
labelstringfacultatif
nullable
quantitystringfacultatif
nullable
unitNamestringfacultatif
nullable
netAmountnumberobligatoire
weclappArticleIdstringobligatoire
detectedAtdatetimefacultatif
nullable
offeredTravelDetectionobjectfacultatif

ADR 1096 §8 — Notausgang „Fahrt-Erkennung aufheben“. `mode: DISABLED` = die Erkennung der angebotenen Fahrt ist für dieses Projekt manuell abgeschaltet: `offeredTravel` wurde geleert und wird weder live erkannt noch erneut eingefroren, Fahrten gedeckter Buchungen folgen wieder der Buchung (ADR 1055 §5). ABSENT/null = automatische Erkennung. `dismissed` hält die aufgehobene Zeile zur Nachvollziehbarkeit fest. Geschütztes Feld: geschrieben nur von POST /projects/:id/offered-travel/detection.

lecture seulenullable
modestringobligatoire
DISABLED
disabledAtdatetimefacultatif
nullable
disabledBystringfacultatif
nullable
dismissedobjectfacultatif
nullable
budgetMinutesintegerfacultatif

Time budget in minutes

≥ 0nullable
budgetUsedMinutesintegerfacultatif

Used time budget in minutes (auto-computed)

≥ 0nullable
methodologystringobligatoire

Project methodology

KANBANSCRUMWATERFALLHYBRID
defaultBoardIduuidfacultatif

Default board UUID

nullable
tagsstring[]facultatif

Project tags

Par défaut : []nullable
salesOrderIduuidfacultatif

Linked sales_order UUID (works for both native and weclapp-sourced orders). Phase 1 of ADR 0139.

nullable
salesOrderSourcestringfacultatif

Origin of the linked sales-order (ADR 0139)

internalweclappnull
nullable
controllingobjectfacultatif

Aggregated controlling data for the project (ADR 0139). Recomputed by reconcile-order-tasks job and on task/time-record mutations.

lecture seulenullable
totalPlannedMinutesintegerfacultatif
≥ 0nullable
totalPlannedAmountstringfacultatif
Motifnullable
totalLoggedMinutesintegerfacultatif
≥ 0nullable
totalNonBillableLoggedMinutesintegerfacultatif
≥ 0nullable
totalLoggedRealMinutesintegerfacultatif
≥ 0nullable
totalLoggedAmountstringfacultatif
Motifnullable
totalBillableMinutesintegerfacultatif
≥ 0nullable
totalBillableAmountstringfacultatif
Motifnullable
lastRecalculatedAtdatetimefacultatif
nullable
materialReadinessobjectfacultatif

Materialbereitschaft des Projekts (Wareneingang). Servergeführt: nur POST/DELETE /projects/:id/material-readiness und die Order-Reconcile-Jobs schreiben hier.

lecture seulenullable
statusstringfacultatif

not_tracked = keine Lieferpositionen am Auftrag (reines DL-Projekt, darf NICHT rot sein). awaiting/partial/complete = Wareneingang offen / teilweise / vollständig.

not_trackedawaitingpartialcomplete
setByuuidfacultatif

User, der den aktuellen Stand gesetzt hat (null bei Ableitung).

nullable
setAtdatetimefacultatif
nullable
notestringfacultatif

Freitext, z. B. „2 von 3 Paketen da, Switch fehlt".

max. 500 caractèresnullable
sourcestringfacultatif

manual = von Hand gesetzt (gewinnt immer gegen die Ableitung). internal/weclapp = aus Bestellung bzw. weclapp-Wareneingang abgeleitet.

manualinternalweclapp
completedAtdatetimefacultatif

Wann es `complete` wurde; beim Zurücksetzen wieder null.

nullable
weclappSalesOrderIdstringfacultatif

weclapp sales order ID

nullable
weclappOrderUrlstringfacultatif

URL to the weclapp sales order detail page

nullable
weclappSalesOrderNumberstringfacultatif

weclapp sales order number (e.g. AB-2026-00042)

max. 100 caractèresnullable
orderIntakeobjectfacultatif

ADR 0765 — set when the order intake found this project by order number (TANSS-imported, order number only in title/description) and linked it instead of creating a duplicate. `mode: linked-existing` tells every later intake run to keep its hands off positions, tasks and checklists — without the marker the next weclapp UPDATE would materialise them into a running project. Written by the worker and the dedupe script only.

lecture seulenullable
modestringfacultatif
linked-existing
linkedAtdatetimefacultatif
salesOrderIdstringfacultatif
nullable
matchedBystringfacultatif
max. 40 caractèresnullable
weclappPerformanceRecordIdstringfacultatif

weclapp performance record created from the sales order at project billing completion (ADR 0412). Set once — the completion endpoint is idempotent on it.

max. 200 caractèreslecture seulenullable
weclappPerformanceRecordNumberstringfacultatif

Number of the weclapp performance record (display/deep-link).

max. 100 caractèreslecture seulenullable
weclappBillingCompletedAtdatetimefacultatif

When the weclapp billing completion ran for this project.

lecture seulenullable
weclappBillingItemIdsstring[]facultatif

ADR 0634 — weclapp salesOrderItem-Ids der beim Abrechnungsabschluss gesammelt angehängten Buchungspositionen. Adresse für den Wiederholungslauf: ein erneuter Abschluss entfernt exakt diese Positionen und schreibt das Bild neu, statt zu duplizieren.

lecture seulenullable
weclappBillingItemsTransferredAtdatetimefacultatif

ADR 0634 — wann die gesammelten Buchungspositionen zuletzt in den weclapp-Auftrag geschrieben wurden.

lecture seulenullable
weclappBillingReplacedItemIdsstring[]facultatif

ADR 0634 — weclapp salesOrderItem-Ids der Platzhalterpositionen, die beim Abschluss aus dem Auftrag ENTFERNT wurden. Reine Nachvollziehbarkeit: weclapp kennt die gelöschte Position danach nicht mehr, ohne diese Spur wäre im Nachhinein nicht erkennbar, was ersetzt wurde.

lecture seulenullable
weclappSalesInvoiceIdstringfacultatif

weclapp sales invoice created from the performance record (ADR 0412). Set once — the create-invoice endpoint is idempotent on it.

max. 200 caractèreslecture seulenullable
weclappSalesInvoiceNumberstringfacultatif

Number of the weclapp sales invoice (display).

max. 100 caractèreslecture seulenullable
weclappSalesInvoiceUrlstringfacultatif

URL to the weclapp sales invoice detail page.

lecture seulenullable
weclappInvoiceCreatedAtdatetimefacultatif

When the weclapp sales invoice was created from the billing dialog.

lecture seulenullable
weclappSalesOrderDataobjectfacultatif

Cached weclapp sales order data

nullable
orderNumberstringfacultatif
orderDatestringfacultatif
netAmountstringfacultatif
grossAmountstringfacultatif
statusstringfacultatif
customerNamestringfacultatif
itemsobject[]facultatif
articleNumberstringfacultatif
nullable
namestringfacultatif
quantitynumberfacultatif
unitPricestringfacultatif
lastSyncedAtdatetimefacultatif
limitsobjectfacultatif

Project cap configuration (budget, hours, deadlines). Used by /projects/:id/limits and warning logic.

nullable
budgetWarningPercentintegerfacultatif

Percent of budget at which a warning is raised

0 – 100Par défaut : 80
hoursWarningPercentintegerfacultatif

Percent of project-total hours at which a warning is raised

0 – 100Par défaut : 80
hoursPerTaskWarningPercentintegerfacultatif

Percent of task.maxMinutes at which a warning is raised

0 – 100Par défaut : 80
deadlineWarningDaysintegerfacultatif

Days before the project deadline at which a warning is raised

0 – 365Par défaut : 7
hardBlockOnExceedbooleanfacultatif

If true, new time records are rejected once project-level budget or hours are exceeded

Par défaut : false
thresholdsNotifiedstring[]facultatif

Threshold keys that have already triggered a notification (first-time only).

Par défaut : []
budgetCapPercentintegerfacultatif

Per-project HARD CAP (Obergrenze) as % of the € budget (controlling.totalLoggedAmount / budget). Once logged spend reaches this percent, further time bookings on the project or its tasks are rejected (422 project-cap-exceeded). null/absent ⇒ inherit the tenant default (settings.projects.defaultLimits.budgetCapPercent); 0 ⇒ explicitly no €-cap for this project (overrides a tenant default). Values > 100 allow a controlled overrun. Tolerated missing on existing projects — runtime fallback, no backfill.

0 – 1000nullable
hoursCapPercentintegerfacultatif

Per-project HARD CAP (Obergrenze) as % of the hours budget (usedMinutes / budgetMinutes). Once the projected usage reaches this percent, further time bookings are rejected (422). null/absent ⇒ inherit the tenant default (settings.projects.defaultLimits.hoursCapPercent), else the legacy limits.hardBlockOnExceed flag (= 100%); 0 ⇒ explicitly no hours-cap. Values > 100 allow a controlled overrun. Runtime fallback, no backfill.

0 – 1000nullable
lockThresholdPercentintegerfacultatif

Per-project override (%) for the task-progress review lock. When task completion (done/total) first reaches this, the project auto-locks for team-lead review. Null ⇒ use tenant default (settings.projectLock.thresholdPercent, default 70).

0 – 100nullable
budgetLockThresholdPercentintegerfacultatif

Per-project override (%) for the BUDGET-progress review lock (ADR 0191). When budget usage (controlling.totalLoggedAmount / budget €) first reaches this, the project auto-locks for team-lead review — independent of, and OR-combined with, the task-progress lock. Setting a value enables budget-locking for this project even if the tenant default is off. Null ⇒ use tenant default (settings.projectLock.lockOnBudget + budgetThresholdPercent).

0 – 100nullable
planLockThresholdPercentintegerfacultatif

Per-project override (%) for the POSITION-PLAN review lock (ADR 0422). When plan usage (controlling.totalLoggedMinutes / totalPlannedMinutes, else the amount equivalent) first reaches this, the project auto-locks for team-lead review — independent of, and OR-combined with, the task and budget locks. Exists because order-materialised projects usually carry no project-level €/hours budget: their planned effort lives in the position limits, so neither of the other two triggers can ever fire there. Setting a value enables plan-locking for this project even if the tenant switch is off. Null ⇒ use tenant default (settings.projectLock.lockOnPlan + planThresholdPercent).

0 – 100nullable
reviewLockobjectfacultatif

Progress-based review lock state (ADR 0191). One-time checkpoint: once released it does not re-lock at the same threshold. Set/cleared ONLY by the project-lock service and the /projects/:id/review endpoints — listed in protectedFields so generic CRUD PATCH cannot write it.

lecture seulenullable
statusstringfacultatif

none = never locked; locked = awaiting team-lead release (blocks technician time bookings); released = reviewed & freed (no re-lock at this threshold).

nonelockedreleased
Par défaut : "none"
thresholdPercentintegerfacultatif

Effective threshold (%) that triggered the lock.

0 – 100nullable
lockedAtdatetimefacultatif
nullable
lockedProgressPercentintegerfacultatif

Progress percent of the triggering metric (see lockedMetric) at the moment the lock fired.

0 – 100nullable
lockedMetricstringfacultatif

Which metric crossed its threshold and triggered the lock: "tasks" (completion done/total), "budget" (controlling.totalLoggedAmount / budget €) or "plan" (controlling.totalLoggedMinutes / totalPlannedMinutes — the position plan, ADR 0422). Drives the banner + review-task wording.

tasksbudgetplan
nullable
consumedMetricsstring[]facultatif

Per-metric one-time checkpoints already consumed (ADR 0191, extended by ADR 0422). A metric in this list does not re-lock — but the task, budget and plan checkpoints are independent, so releasing one never disables the others. Absent on locks written before this field existed; the service then derives it from lockedMetric (no backfill).

Par défaut : []nullable
reviewTaskIduuidfacultatif

The auto-created review task assigned to the reviewer(s).

nullable
reviewerIdsuuid[]facultatif

Internal user IDs allowed to release (team leads of orgUnit, else the project manager). Mirrored onto the review task assignees.

Par défaut : []nullable
releasedAtdatetimefacultatif
nullable
releasedByuuidfacultatif

Internal user ID who released the lock.

nullable
customerAccessobjectfacultatif

Customer access configuration for project visibility

nullable
modestringfacultatif

Access mode for customer project view

DISABLEDAUTHENTICATEDSECURE_LINKLINK_PLUS_LOGIN
visibilityProfilestringfacultatif

Predefined visibility profile or CUSTOM for manual feature selection

MINIMALSTANDARDEXTENDEDCOLLABORATIVECUSTOM
featuresobjectfacultatif

Individual feature flags for customer visibility

statusProgressbooleanfacultatif
nextMilestonebooleanfacultatif
timelinePhasesbooleanfacultatif
ganttReadOnlybooleanfacultatif
releasedDocumentsbooleanfacultatif
ownChangeRequestsbooleanfacultatif
createChangeRequestsbooleanfacultatif
viewAssignedTasksbooleanfacultatif
commentOnTasksbooleanfacultatif
createTasksbooleanfacultatif
assignTasksToCustomerbooleanfacultatif
uploadFilesOnTasksbooleanfacultatif
uploadFilesToDmsbooleanfacultatif
approvalsbooleanfacultatif
externalActivityFeedbooleanfacultatif
accessTokenstringfacultatif

Random token for public access URL

lecture seulenullable
accessTokenCreatedAtdatetimefacultatif

When the access token was generated

lecture seulenullable
allowedPartyIdsuuid[]facultatif

Party UUIDs that are allowed to access the project

Par défaut : []nullable
sourceTemplateIduuidfacultatif

task_template this project was instantiated from.

nullable
sourceTemplateVersionstringfacultatif

Pinned template version at instantiation time.

Motifnullable
inboundReplyAckedAtdatetimefacultatif

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 it. Mirrors opportunity.inboundReplyAckedAt.

nullable
inboundReplyAckedBystringfacultatif

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

nullable

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

Recherche