Projektzeitbuchung abschließen
PUT /ws/2.0/project_time/finish/{id}.json
Der Parameter id
gibt die ID der abzuschließenden Projektzeitbuchung an.
Beispiel
Anfrage: PUT /ws/2.0/project_time/finish/12.json
{
"comment": "Updated project proposal"
}
Antwort: 200 OK
{
"id": 12,
"date": "2011-10-25",
"employee": 32,
"status": 0,
"project": 1,
"projectName": "Graphix Website",
"task": 2,
"taskName": "Documentation",
"duration": 1836,
"comment": "Updated project proposal",
"begin": null,
"end": null,
"billable": true,
"costPerHour": 70,
"isBilled": false
}
HTTP-Statuscodes
Statuscode | Beschreibung |
---|---|
200 OK | Die Buchung wurde erfolgreich abgeschlossen. |
400 Bad Request | Die Anfrage hat ein ungültiges Format. |
403 Forbidden | Diese Buchung ist bereits abgeschlossen oder Sie haben keine Berechtigung, diese Projektzeitbuchung abzuschließen. |