Skip to main content
POST
/
teams
/
filter
Fetch Teams by Team ID
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    teamIds: ['9c1b7b9a-8c2f-4a9d-9f63-2a1b5c7e8d90', '7a2d1c4e-1f2a-4c9b-8e12-3f6d9a4b2c11']
  })
};

fetch('https://api.trackpilots.com/teams/filter', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": [
    {
      "teamId": "c1e4416e-f57c-4614-886f-35a5541f4316",
      "teamName": "Full Stack Developer",
      "teamHeadCount": "3",
      "teamMembers": "5"
    }
  ]
}

Body

application/json
teamIds
string<uuid>[]
required

List of team IDs to fetch

Minimum array length: 1

Response

200 - application/json

Teams fetched successfully

success
boolean
Example:

true

data
object[]