Projektzeitbuchung hinzufügen

POST /ws/2.0/project_time.json

Beispiel

Anfrage: POST /ws/2.0/project_time.json

{
  "date": "2011-10-25",
  "employee": 32,
  "project": 1,
  "task": 2,
  "duration": 3600,
  "comment": "Updated project proposal"
}

Antwort: 200 OK

{
  "id": 47,
  "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 Projektzeitbuchung wurde erfolgreich angelegt.
400 Bad Request Die Anfrage hat ein ungültiges Format.
403 Forbidden Sie haben keine Berechtigung, diese Projektzeitbuchung anzulegen