Retrieve all teams associated with the authenticated user. If the user is a tenant admin, returns all teams for the tenant. Pagination is available based on query parameters
from truefoundry import TrueFoundryclient = TrueFoundry( api_key="YOUR_API_KEY", base_url="https://yourhost.com/path/to/api",)client.list( limit=10, offset=10,)# Iterate through resultsfor item in response: print(item.name)# Or paginate page by pagefor page in response.iter_pages(): for item in page: print(item.name)
create_or_update
Creates a new team or updates an existing team. It ensures that the team name is unique, valid, and that the team has at least one member. The members of the team are added or updated based on the provided emails.