Skip to content

GetTeams

GetTeams()

Description

Get teams for an account. This function is designed to retrieve all teams within your organization.

Returns

A Pandas DataFrame containing the teams' information, with columns:

  • id: Team unique identifier.
  • name: Team given name.

Raises

Exception

  • No Access Token Found.
  • If the HTTP response status is not 200, indicating an unsuccessful API request, or if there is a failure in parsing the JSON response.

Example

from hdforce import GetTeams

# Get all teams
teams = GetTeams()
# Print teams table
print(teams)

output

id name
KBHev5JXD9YY1Xz5zmSp Test Team 1
vW9iEKafhs2PamfKSdGC Test Team 2
yxYfkCEubB5o8xrLy5n2 Test Team 3