Groups

List employees in a group

Changed on

Returns a list of employees in a group with their policies and enrolments. The employees are returned sorted by addition date, with the most recently added employees appearing first.

get/groups/{group_id}/employees

Request

  • Base URL
    https://test.api.kota.io
  • URL
    https://test.api.kota.io/groups/{group_id}/employees
  • Auth
    HTTP bearer

Path parameters

group_idstring required
Example:gr_3b1333d87d9d4fd6ad83ba7f6b0e951a

Query parameters

employee_idstring
Example:ee_3b1333d87d9d4fd6ad83ba7f6b0e951a

Filter by employee ID.

pageinteger

The page of results to return. Defaults to 1 if not provided.

page_sizeinteger

The number of results to return per page. Defaults to 10 if not provided. Maximum value is 100.

Response

OK

pageinteger required

The current page of the results

page_sizeinteger required

The number of results on this page. This can be different from the requested page size if the total number of results is less than the requested page size

total_countinteger required

The total number of elements available in the response. This is the total number of elements available across all pages, not just the current page.

has_next_pageboolean

Whether there are more pages available after this page

has_previous_pageboolean

Whether there are more pages available before this page

Example response

{
  "items": [
    {
      "id": "ee_3b1333d87d9d4fd6ad83ba7f6b0e951a",
      "group_id": "gr_3b1333d87d9d4fd6ad83ba7f6b0e951a",
      "policies": [
        {
          "id": "p_3b1333d87d9d4fd6ad83ba7f6b0e951a"
        }
      ],
      "enrolments": [
        {
          "id": "ei_3b1333d87d9d4fd6ad83ba7f6b0e951a"
        }
      ],
      "desired_policy_start_date": "2024-12-01",
      "enrolment_date": "2024-12-01",
      "scheduled_group_transitions": [
        {
          "new_group_id": "gr_3b1333d87d9d4fd6ad83ba7f6b0e951a",
          "scheduled_date": "2024-12-01"
        }
      ]
    }
  ],
  "page": 1,
  "page_size": 20,
  "total_count": 1
}

Changes

    • warning

      deleted the header request parameter X-Platform-Id

    • warning

      added the new rejected enum value to the ////// response property for the response status