POST /employee_groups/:id

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

Updates an employee group

Request

Input

name
required The name of the group
employee_ids
required List of IDs for the employees being in the group

Example

Request

POST /employee_groups/82
{
  "name": "My group",
  "employee_ids": [
    213
  ]
}

Response

Status: 201 Created
{
  "employee_groups": [
    {
      "id": 82,
      "name": "Salg",
      "speed_dial": 3,
      "employees": [
        {
          "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": 12,
            "name": "Hovednummer",
            "phone_number": {
              "id": 900,
              "number": "4571999999"
            }
          },
          "subscription_types": [
            "mobile",
            "switch"
          ],
          "speed_dial": 10,
          "do_not_disturb": true,
          "dnd_timeout_at": "2012-09-02T22:00:00+01:00"
        }
      ]
    }
  ]
}