POST /v1/timers/{id}/convert POST /v1/timers/{id}/convert
Convert timer to time record and delete timer
Data model
This operation works on the entity Timer (timer). All 12 fields — type, validation, required status, relationships — are listed in the schema reference .
Request body
Name Type Description datestring<date>descriptionrequired stringserviceTypeIdrequired stringpartyIdrequired stringreferenceTypestringreferenceIdstringentryTypestringlocationstringbillableTypestringisInternalbooleaninternalNotestring
Path parameters
Name Type Description idrequired string
Example
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"
});
Response codes
HTTP
Meaning
201
Default Response
Description pending
This operation does not have a curated annotation yet. The content will be added with the next documentation update.