Teams
GET /people/teams
Group: People Management › Teams · Operation ID: teams
Returns a list of teams. To list one team's direct children, filter by parentId.
Open in the interactive reference
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Api-Version |
header | "v1" |
yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1. |
Query surface
id— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likename— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, liketeamType— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likestatus— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likestartDate— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likeendDate— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likeemployeeCount— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likeparentId— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, likelastModifiedDate— filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like- Orderable: id, teamNumber, name, teamType, status, startDate, endDate, employeeCount, lastModifiedDate
- Selectable: id, teamNumber, name, teamType, status, startDate, endDate, employeeCount, parentId, parentName, lastModifiedDate
Response
200 Success
Under data, an array of teamsRow:
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | no | The unique identifier for the team. |
teamNumber |
string or null | no | The system-generated team number. Absent while none has been assigned. |
name |
string | no | The name of the team. |
teamType |
string or null | no | The type of the team. Possible values: 'hrTeam', 'psaTeam'. |
status |
string or null | no | The status of the team, derived from its dates. 'planned' before the start date, 'active' between the dates, 'inactive' after the end date. |
startDate |
string (date) or null | no | The first day the team exists. Format YYYY-MM-DD. |
endDate |
string (date) or null | no | The last day the team exists. Format YYYY-MM-DD. Absent for a team with no planned end. |
employeeCount |
number or null | no | The number of active members of the team. |
parentId |
string or null | no | The identifier of the parent team. Absent for a top-level team. See id on GET people/teams/:id. |
parentName |
string or null | no | The name of the parent team. Absent for a top-level team. |
lastModifiedDate |
string (date-time) | no | The date and time the team record last changed, in UTC. Format YYYY-MM-DDTHH:mm:ss.sssZ. |
Statuses
400— Invalid request or business failure401— Missing or invalid access token403— Not authorized404— Not found429— Too many requests500— Internal server error