TeamService
Index
Constructors
constructor
Parameters
httpRequest: BaseHttpRequest
Returns TeamService
Properties
publicreadonlyhttpRequest
Methods
publicteamCreate
Parameters
__namedParameters: { requestBody?: { name: string; parent_id: string; reference?: string } }
Returns CancelablePromise<{ data?: TeamCreateResponse }>
any Successfully created the team.
publicteamDelete
Delete a team
Bot-compatible
Deletes a team.Parameters
__namedParameters: { requestBody?: { id: string } }
Returns CancelablePromise<{ data?: TeamDeleteResponse }>
any Successfully deleted the team.
publicteamSort
Sort teams Sort the child teams of a parent team in a given order.
Parameters
__namedParameters: { requestBody: TeamSortParam }
Returns CancelablePromise<any>
any Successfully sorted the teams.
publicteamUpdate
Update a team
Bot-compatible
Updates a team's information including its name and parent team.Parameters
__namedParameters: { requestBody?: { id: string; name?: string; parent_id?: string; reference?: string } }
Returns CancelablePromise<{ data?: TeamUpdateResponse }>
any Successfully updated the team's information.
publicteamUserAdd
Add users to a team
Bot-compatible
Adds users to a team.Parameters
__namedParameters: { requestBody?: { id?: string; user_ids?: string[] } }
Returns CancelablePromise<{ data?: TeamUserCreateResponse }>
any Successfully added the users to the selected team.
publicteamUserPrimaryUpdate
Update a user's primary team
Bot-compatible
Updates a user's primary team.Parameters
__namedParameters: { requestBody?: { id: string; user_id: string } }
Returns CancelablePromise<void>
void
publicteamUserRemove
Remove team members
Bot-compatible
Removes members from a team.Parameters
__namedParameters: { requestBody?: { id: string; user_ids: string[] } }
Returns CancelablePromise<{ data?: TeamUserDeleteResponse }>
any Successfully removed the members from the team.
publicuserTeamList
List out teams
Bot-compatible
List out the child teams of a given team. If no parameters are passed, the list of all teams in the organization is given as a response.Parameters
__namedParameters: { directChildrenOnly?: boolean; parentId?: string }
Returns CancelablePromise<{ data?: GetUserTeamListResponse }>
any Successfully retrieved the list of teams.
Create a team
Bot-compatible
Creates a new team in the organization.ApiError