API · v1 · stabil
CODEMETA OSDeveloper Center
DE
Konsole öffnen

POST /v1/timers/{id}/convert

POST/v1/timers/{id}/convert

Convert timer to time record and delete timer

Datenmodell

Diese Operation arbeitet auf der Entität Timer (timer). Alle 12 Felder — Typ, Validierung, Pflichtangabe, Beziehungen — stehen in der Schema-Referenz.

Request Body

NameTypBeschreibung
datestring<date>
descriptionerforderlichstring
serviceTypeIderforderlichstring
partyIderforderlichstring
referenceTypestring
referenceIdstring
entryTypestring
locationstring
billableTypestring
isInternalboolean
internalNotestring

Pfad-Parameter

NameTypBeschreibung
iderforderlichstring

Beispiel

curl -X POST https://api.codemeta-os.de/v1/timers/{id}/convert \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "date": "string",
  "description": "string",
  "serviceTypeId": "string",
  "partyId": "string",
  "referenceType": "TICKET",
  "referenceId": "string",
  "entryType": "string",
  "location": "string",
  "billableType": "FULL",
  "isInternal": false,
  "internalNote": "string"
}'
const result = await cm.timers.post({
  "date": "string",
  "description": "string",
  "serviceTypeId": "string",
  "partyId": "string",
  "referenceType": "TICKET",
  "referenceId": "string",
  "entryType": "string",
  "location": "string",
  "billableType": "FULL",
  "isInternal": false,
  "internalNote": "string"
});

Antwortcodes

HTTP Bedeutung
201 Default Response

Suche