POST /v1/timers/{id}/convert
POST/v1/timers/{id}/convert
Convert timer to time record and delete timer
Datamodel
Deze operatie werkt op de entiteit Timer (timer). Alle 12 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.
Request body
| Naam | Type | Beschrijving |
|---|
date | string<date> | |
descriptionvereist | string | |
serviceTypeIdvereist | string | |
partyIdvereist | string | |
referenceType | string | |
referenceId | string | |
entryType | string | |
location | string | |
billableType | string | |
isInternal | boolean | |
internalNote | string | |
Padparameters
| Naam | Type | Beschrijving |
|---|
idvereist | string | |
Voorbeeld
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"
});
Antwoordcodes
| HTTP |
Betekenis |
201 |
Default Response |