Projektzeitbuchung ändern
PUT /ws/2.0/project_time/{id}.json
Der Parameter id
gibt die ID der zu bearbeitenden Projektzeitbuchung an.
Beispiel
Anfrage: PUT /ws/2.0/project_time/12.json
{
"date": "2011-10-25",
"employee": 32,
"project": 1,
"task": 2,
"duration": 3600,
"comment": "Updated project proposal"
}
Antwort: 200 OK
{
"id": 12,
"date": "2011-10-25",
"employee": 32,
"employeeName": "Joachim Maier",
"status": 0,
"project": 1,
"projectName": "Graphix Website",
"task": 2,
"taskName": "Documentation",
"duration": 3600,
"comment": "Updated project proposal",
"begin": null,
"end": null,
"billable": true,
"costPerHour": 70,
"isBilled": false
}
HTTP-Statuscodes
Statuscode | Beschreibung |
---|---|
200 OK | Die Änderung der Daten war erfolgreich. |
400 Bad Request | Die Anfrage hat ein ungültiges Format. |
403 Forbidden | Sie haben keine Berechtigung, diese Projektzeitbuchung zu bearbeiten. |
404 Not Found | Die angefragte Projektzeitbuchung existiert nicht. |