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/users: Manage co-workers


Object type „user“

Parameter Type Description
id integer ID of the co-worker
name string Name of the co-worker
number string Personnel number
email string E-mail-address of the co-worker
role string Role of the co-worker
active boolean Is the co-worker active?
edit_lock date (YYYY-MM-DD) Active edit lock for this co-worker

List co-workers

Request
GET /api/users
Response
{
  "users": 
  {
    [object of type user],
    [object of type user], ...
  }
}

Get co-worker

Request
GET /api/users/[ID]
Response
{
  "user": [object of type user]
}

Add co-workers

Request
POST /api/users
Required parameters name, number, email, role
Optional parameters keine
Response
{
  "user": [object of type user]
}

Edit co-workers

Request
PUT /api/users/[ID]
Required parameters keine
Optional parameters name, number, active, role
Response
{
  "user": [object of type user]
}

Deactivate co-workers

Request
DELETE /api/users/[ID]
Response
{
  "user": [object of type user]
}