POST /v1/timers/{id}/convert POST /v1/timers/{id}/convert
Convert timer to time record and delete timer
Modèle de données
Cette opération porte sur l'entité Timer (timer). Les 12 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma .
Corps de la requête
Nom Type Description datestring<date>descriptionobligatoire stringserviceTypeIdobligatoire stringpartyIdobligatoire stringreferenceTypestringreferenceIdstringentryTypestringlocationstringbillableTypestringisInternalbooleaninternalNotestring
Paramètres de chemin
Nom Type Description idobligatoire string
Exemple
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"
});
Codes de réponse
HTTP
Signification
201
Default Response
Description à venir
Cette opération n'a pas encore d'annotation relue. Le contenu sera ajouté lors de la prochaine mise à jour de la documentation.