API calls for all endpoints tagged Teams.
Summary
Functions
Add team member Adds a user to a team. Both the team and user must exist.
Create team Creates a new team. The team ID is derived from the name.
Delete team Permanently removes a team.
Get team Returns details of a specific team including member count.
List team members Returns all members of a team with their user details and membership source.
List teams Returns a paginated list of teams with optional search.
Remove team member Removes a user from a team.
Update team Updates a team. Note that renaming teams is not allowed.
Functions
@spec add_team_member( Tesla.Env.client(), String.t(), ExBifrost.Model.AddTeamMemberRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.MessageResponse.t()} | {:ok, ExBifrost.Model.ManagementErrorResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Add team member Adds a user to a team. Both the team and user must exist.
Parameters
connection(ExBifrost.Connection): Connection to serverid(String.t): Team IDadd_team_member_request(AddTeamMemberRequest):opts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.MessageResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_team( Tesla.Env.client(), ExBifrost.Model.CreateTeamRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.CreateTeam200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.ManagementErrorResponse.t()} | {:error, Tesla.Env.t()}
Create team Creates a new team. The team ID is derived from the name.
Parameters
connection(ExBifrost.Connection): Connection to servercreate_team_request(CreateTeamRequest):opts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.CreateTeam200Response.t}on success{:error, Tesla.Env.t}on failure
@spec delete_team(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.MessageResponse.t()} | {:ok, ExBifrost.Model.ManagementErrorResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Delete team Permanently removes a team.
Parameters
connection(ExBifrost.Connection): Connection to serverid(String.t): Team IDopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.MessageResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_team(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.ListTeams200ResponseTeamsInner.t()} | {:ok, ExBifrost.Model.ManagementErrorResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get team Returns details of a specific team including member count.
Parameters
connection(ExBifrost.Connection): Connection to serverid(String.t): Team IDopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.ListTeams200ResponseTeamsInner.t}on success{:error, Tesla.Env.t}on failure
@spec get_team_members(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.GetTeamMembers200Response.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.ManagementErrorResponse.t()} | {:error, Tesla.Env.t()}
List team members Returns all members of a team with their user details and membership source.
Parameters
connection(ExBifrost.Connection): Connection to serverid(String.t): Team IDopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.GetTeamMembers200Response.t}on success{:error, Tesla.Env.t}on failure
@spec list_teams( Tesla.Env.client(), keyword() ) :: {:ok, ExBifrost.Model.BifrostError.t()} | {:ok, ExBifrost.Model.ListTeams200Response.t()} | {:error, Tesla.Env.t()}
List teams Returns a paginated list of teams with optional search.
Parameters
connection(ExBifrost.Connection): Connection to serveropts(keyword): Optional parameters:page(integer()): Page number (1-based):limit(integer()): Number of teams per page (max 100):search(String.t): Search by team name
Returns
{:ok, ExBifrost.Model.ListTeams200Response.t}on success{:error, Tesla.Env.t}on failure
@spec remove_team_member(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, ExBifrost.Model.MessageResponse.t()} | {:ok, ExBifrost.Model.ManagementErrorResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Remove team member Removes a user from a team.
Parameters
connection(ExBifrost.Connection): Connection to serverid(String.t): Team IDuser_id(String.t): User ID to removeopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.MessageResponse.t}on success{:error, Tesla.Env.t}on failure
@spec update_team( Tesla.Env.client(), String.t(), ExBifrost.Model.UpdateTeamRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.CreateTeam200Response.t()} | {:ok, ExBifrost.Model.ManagementErrorResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Update team Updates a team. Note that renaming teams is not allowed.
Parameters
connection(ExBifrost.Connection): Connection to serverid(String.t): Team IDupdate_team_request(UpdateTeamRequest):opts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.CreateTeam200Response.t}on success{:error, Tesla.Env.t}on failure