API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · asset_handovers

Asset Handover Schema

Schema ID
asset_handover
Collection
asset_handovers
Permissions
  • Readasset_handover_view
  • Createasset_handover_create
  • Editasset_handover_edit
  • Deleteasset_handover_delete
Relationships

Fields

Asset Handover Schema

asset_handovers4 permissions

Ausgabe-/Rückgabeprotokoll für ein Asset (ADR 0675). Ein Dokument je Ausgabevorgang; die Rückgabe setzt returnedAt auf demselben Dokument.

assetIduuidrequired→ asset

Asset, das ausgegeben wurde.

recipientTypestringrequired

USER = interne:r Mitarbeiter:in, PARTY_CONTACT = CRM-Kontakt/Firma (Leihgerät), EXTERNAL = Freitext ohne Datensatz.

USERPARTY_CONTACTEXTERNAL
recipientUserIduuidoptional

Interne:r Empfänger:in (users._id) — Pflicht bei recipientType USER.

Default: nullnullable
recipientPartyIduuidoptional

CRM-Empfänger (parties._id) — Pflicht bei recipientType PARTY_CONTACT.

Default: nullnullable
recipientNamestringoptional

Freitext-Name — Pflicht bei recipientType EXTERNAL, sonst optionale Ergänzung (z. B. der konkrete Mensch hinter einer Firma).

max 200 charactersDefault: nullnullable
recipientEmailstringoptional

Kontaktadresse des Empfängers, rein dokumentarisch.

max 200 charactersDefault: nullnullable
issuedAtdatetimerequired

Zeitpunkt der Ausgabe.

issuedByUserIduuidoptional

Wer ausgegeben hat. Wird serverseitig vorbelegt, ist aber überschreibbar.

Default: nullnullable
conditionAtIssuestringoptional

Zustand bei Ausgabe.

NEWGOODUSEDDAMAGEDDEFECTIVEnull
Default: nullnullable
purposestringoptional

Anlass der Ausgabe (dokumentarisch).

PERMANENTLOANREPLACEMENTPROJECTREPAIROTHERnull
Default: nullnullable
expectedReturnAtdatetimeoptional

Vereinbarte Rückgabe — Grundlage für die Überfällig-Kennzeichnung.

Default: nullnullable
returnedAtdatetimeoptional

Zeitpunkt der Rückgabe. null = Asset ist aktuell beim Empfänger. Das Setzen dieses Feldes IST die Rückgabe.

Default: nullnullable
returnedToUserIduuidoptional

Wer die Rückgabe entgegengenommen hat.

Default: nullnullable
conditionAtReturnstringoptional

Zustand bei Rückgabe.

NEWGOODUSEDDAMAGEDDEFECTIVEnull
Default: nullnullable
returnNotesstringoptional

Bemerkungen zur Rückgabe (Schäden, fehlendes Zubehör).

max 2000 charactersDefault: nullnullable
accessoriesstring[]optional

Mitgegebenes Zubehör (Netzteil, Tasche, SIM, Schlüssel …).

max 50 itemsDefault: []
locationstringoptional

Wo die Übergabe stattfand.

max 200 charactersDefault: nullnullable
ticketIduuidoptional

Auslösendes Ticket, falls die Ausgabe aus einem Vorgang heraus passierte.

Default: nullnullable
projectIduuidoptional

Auslösendes Projekt.

Default: nullnullable
equipmentAssignmentIduuidoptional

Verweis auf den HR-Datensatz (ADR 0115), falls die Ausgabe dort gepflegt wurde. Verhindert doppelte Zählung im Ausgabe-Tab.

Default: nullnullable
notesstringoptional

Freitext zur Ausgabe.

max 2000 charactersDefault: nullnullable
attachmentFileIdsuuid[]optional

Angehängte Dateien — unterschriebenes Übergabeprotokoll, Fotos.

max 20 itemsDefault: []
signedProtocolFileIduuidoptional

Das unterschriebene Übergabeprotokoll, falls hochgeladen.

Default: nullnullable

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/asset_handovers — List, paginated + filterable
  • GET /api/v1/asset_handovers/<id> — Single entity
  • POST /api/v1/asset_handovers — Create
  • PATCH /api/v1/asset_handovers/<id> — Partial update
  • DELETE /api/v1/asset_handovers/<id> — Soft delete
  • GET /api/v1/asset_handovers/<id>/timeline — Audit + activities

Search