POST /employee

This version of the API is deprecated and will stop working from February 1, 2015, please see API v2

Updates the authenticated employee.

Request

Input

cloak_reception_id
Optional. Controls which number is used for outgoing calls. Set to null to use the employee’s mobile number.
do_not_disturb
Optional. Switch Do Not Disturb on or off. Controls whether the employee is callable through any reception number for the company (either directly or through membership of a call group)
dnd_timeout_at
Optional. Set to a timestamp to switch do_not_disturb to false after this time. If set to null, do_not_disturb remains true until disabled through the API or web interface. This setting has no effect if do_not_disturb is false.

Example

Request

POST /employee
{
  "cloak_reception_id": 17
}

Response

Status: 200 OK
{
  "id": 213,
  "name": "John Mogens",
  "email": "john@example.com",
  "admin": false,
  "mobile_phone_number": {
    "id": 800,
    "number": "4571999951"
  },
  "foreign_phone_number": {
    "id": 273,
    "number": "4577344540"
  },
  "cloak_reception": {
    "id": 17,
    "name": "Hovednummer",
    "phone_number": {
      "id": 902,
      "number": "4571999999"
    }
  },
  "subscription_types": [
    "mobile",
    "switch"
  ],
  "speed_dial": 10,
  "do_not_disturb": true,
  "dnd_timeout_at": "2012-09-02T22:00:00+01:00",
  "employee_groups": [
    {
      "id": 82,
      "name": "Salg",
      "speed_dial": 3
    }
  ]
}