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

Timer Schema

ID du schéma
timer
Collection
timers
Autorisations
  • Liretimer_view
  • Créertimer_create
  • Modifiertimer_edit
  • Supprimertimer_delete
Relations

Champs

Timer Schema

timers4 autorisations

Schema for validating timer entities

userIduuidobligatoire

User ID who owns this timer

ticketIduuidfacultatif→ ticket

Associated ticket UUID

nullable
projectIduuidfacultatif→ project

Associated project UUID

nullable
partyIduuidfacultatif

Associated party/customer UUID

nullable
taskIduuidfacultatif

Associated task UUID

nullable
remoteSessionIduuidfacultatif

Remote session (remote_sessions) this timer was started for — the stop/booking flow books it with sourceType REMOTE_SESSION

nullable
titlestringobligatoire

Timer title/description

1–200 caractères
startedAtdatetimeobligatoire

When the timer was initially started (ISO datetime)

pausedAtdatetimefacultatif

When the timer was paused (if currently paused) (ISO datetime)

nullable
accumulatedSecondsintegerobligatoire

Net worked seconds, excluding pauses (for pause/resume functionality)

≥ 0Par défaut : 0
pausedSecondsintegerfacultatif

Total seconds spent paused (sum of completed pause intervals)

≥ 0Par défaut : 0
isRunningbooleanobligatoire

Whether the timer is currently running

Par défaut : true
notesstringfacultatif

Additional notes for the timer

max. 1000 caractèresnullable

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

Recherche