REST-API

The clockodo API allows you to connect clockodo to other systems. Accounting and project management applications or proprietary shell scripts are examples of useful mash-ups with clockodo.

api/overtimecarry: Manage overtime carryovers


Object type „overtimecarryRow“

Parameter Type Description
users_id integer The related employee's ID
year integer Year for which the overtime carryover applies Format YYYY
hours float Number of hours
note string Note

List overtime carryovers

Request
GET /api/overtimecarry
Optionale Parameter users_id (integer) Restrict data to this user
year (integrer) Restrict data to this year
Response
{
  "overtimecarry": 
  {
    [object of type overtimecarryRow],
    [object of type overtimecarryRow], 
    ...
  }
}

Request single overtime carryover

Request
GET /api/overtimecarry/[USERS_ID]/[YEAR]
Response
{
  "overtimecarryRow": [object of type overtimecarryRow]
}

Add overtime carryover

Request
POST /api/overtimecarry
Required parameters users_id, year, hours
Optional parameters note
Response
{
  "overtimecarryRow": [object of type overtimecarryRow]
}

Edit overtime carryover

Request
PUT /api/overtimecarry/[USERS_ID]/[YEAR]
Optional parameters hours, note
Response
{
  "overtimecarryRow": [object of type overtimecarryRow]
}

Delete overtime carryover

Request
DELETE /api/overtimecarry/[USERS_ID]/[YEAR]
Response
{
  "success": true
}