API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

Create timer

POST/v1/timers

Create a new timer in the active tenant.

Data model

This operation works on the entity Timer (timer). All 12 fields — type, validation, required status, relationships — are listed in the schema reference.

  • Required fields: userId, title, startedAt, accumulatedSeconds, isRunning
  • Server-managed: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy — the platform assigns these fields; they are discarded in the request.

Request body

NameTypeDescription
ticketIdstring
projectIdstring
partyIdstring
taskIdstring
titlerequiredstring
notesstring

Example

curl -X POST https://api.codemeta-os.de/v1/timers \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "ticketId": "string",
  "projectId": "string",
  "partyId": "string",
  "taskId": "string",
  "title": "string",
  "notes": "string"
}'
const result = await cm.timers.post({
  "ticketId": "string",
  "projectId": "string",
  "partyId": "string",
  "taskId": "string",
  "title": "string",
  "notes": "string"
});

Response codes

HTTP Meaning
201 Default Response

Search