Package com.mypurecloud.sdk.v2.api
Class TeamsApi
java.lang.Object
com.mypurecloud.sdk.v2.api.TeamsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteTeam(DeleteTeamRequest request) Delete teamdeleteTeam(ApiRequest<Void> request) Delete teamvoiddeleteTeam(String teamId) Delete teamvoidDelete team membersdeleteTeamMembers(ApiRequest<Void> request) Delete team membersvoiddeleteTeamMembers(String teamId, String id) Delete team membersdeleteTeamMembersWithHttpInfo(String teamId, String id) Delete team membersdeleteTeamWithHttpInfo(String teamId) Delete teamgetTeam(GetTeamRequest request) Get teamgetTeam(ApiRequest<Void> request) Get teamGet teamgetTeamMembers(GetTeamMembersRequest request) Get team membershipgetTeamMembers(ApiRequest<Void> request) Get team membershipGet team membershipgetTeamMembersWithHttpInfo(String teamId, Integer pageSize, String before, String after, String expand) Get team membershipgetTeams(GetTeamsRequest request) Get Team listinggetTeams(ApiRequest<Void> request) Get Team listingGet Team listingGet Team listinggetTeamWithHttpInfo(String teamId, String expand) Get teampatchTeam(PatchTeamRequest request) Update teampatchTeam(ApiRequest<Team> request) Update teamUpdate teampatchTeamWithHttpInfo(String teamId, Team body) Update teamQuery for team activity observationsQuery for team activity observationspostAnalyticsTeamsActivityQuery(TeamActivityQuery body, Integer pageSize, Integer pageNumber) Query for team activity observationspostAnalyticsTeamsActivityQueryWithHttpInfo(TeamActivityQuery body, Integer pageSize, Integer pageNumber) Query for team activity observationspostTeamMembers(PostTeamMembersRequest request) Add team memberspostTeamMembers(ApiRequest<TeamMembers> request) Add team memberspostTeamMembers(String teamId, TeamMembers body) Add team memberspostTeamMembersWithHttpInfo(String teamId, TeamMembers body) Add team memberspostTeams(PostTeamsRequest request) Create a teampostTeams(ApiRequest<Team> request) Create a teamCreate a teampostTeamsSearch(PostTeamsSearchRequest request) Search resources.postTeamsSearch(ApiRequest<TeamSearchRequest> request) Search resources.Search resources.Search resources.postTeamsWithHttpInfo(Team body) Create a team
-
Constructor Details
-
TeamsApi
public TeamsApi() -
TeamsApi
-
-
Method Details
-
deleteTeam
Delete team- Parameters:
teamId- Team ID (required)- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteTeamWithHttpInfo
Delete team- Parameters:
teamId- Team ID (required)- Throws:
IOException- if the request fails to be processed
-
deleteTeam
Delete team- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteTeam
Delete team- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
deleteTeamMembers
Delete team members- Parameters:
teamId- Team ID (required)id- Comma separated list of member ids to remove (required)- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteTeamMembersWithHttpInfo
Delete team members- Parameters:
teamId- Team ID (required)id- Comma separated list of member ids to remove (required)- Throws:
IOException- if the request fails to be processed
-
deleteTeamMembers
Delete team members- Parameters:
request- The request object- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
deleteTeamMembers
Delete team members- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getTeam
Get team- Parameters:
teamId- Team ID (required)expand- Expand the division name (optional)- Returns:
- Team
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTeamWithHttpInfo
Get team- Parameters:
teamId- Team ID (required)expand- Expand the division name (optional)- Returns:
- Team
- Throws:
IOException- if the request fails to be processed
-
getTeam
Get team- Parameters:
request- The request object- Returns:
- Team
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTeam
Get team- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getTeamMembers
public TeamMemberEntityListing getTeamMembers(String teamId, Integer pageSize, String before, String after, String expand) throws IOException, ApiException Get team membership- Parameters:
teamId- Team ID (required)pageSize- Page size (optional, default to 25)before- The cursor that points to the previous item in the complete list of teams (optional)after- The cursor that points to the next item in the complete list of teams (optional)expand- Expand the name on each user (optional)- Returns:
- TeamMemberEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTeamMembersWithHttpInfo
public ApiResponse<TeamMemberEntityListing> getTeamMembersWithHttpInfo(String teamId, Integer pageSize, String before, String after, String expand) throws IOException Get team membership- Parameters:
teamId- Team ID (required)pageSize- Page size (optional, default to 25)before- The cursor that points to the previous item in the complete list of teams (optional)after- The cursor that points to the next item in the complete list of teams (optional)expand- Expand the name on each user (optional)- Returns:
- TeamMemberEntityListing
- Throws:
IOException- if the request fails to be processed
-
getTeamMembers
public TeamMemberEntityListing getTeamMembers(GetTeamMembersRequest request) throws IOException, ApiException Get team membership- Parameters:
request- The request object- Returns:
- TeamMemberEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTeamMembers
public ApiResponse<TeamMemberEntityListing> getTeamMembers(ApiRequest<Void> request) throws IOException Get team membership- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
getTeams
public TeamEntityListing getTeams(Integer pageSize, String name, String after, String before, String expand) throws IOException, ApiException Get Team listing- Parameters:
pageSize- Page size (optional, default to 25)name- Return only teams whose names start with this value (case-insensitive matching) (optional)after- The cursor that points to the next item in the complete list of teams (optional)before- The cursor that points to the previous item in the complete list of teams (optional)expand- Expand the division on each team (optional)- Returns:
- TeamEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTeamsWithHttpInfo
public ApiResponse<TeamEntityListing> getTeamsWithHttpInfo(Integer pageSize, String name, String after, String before, String expand) throws IOException Get Team listing- Parameters:
pageSize- Page size (optional, default to 25)name- Return only teams whose names start with this value (case-insensitive matching) (optional)after- The cursor that points to the next item in the complete list of teams (optional)before- The cursor that points to the previous item in the complete list of teams (optional)expand- Expand the division on each team (optional)- Returns:
- TeamEntityListing
- Throws:
IOException- if the request fails to be processed
-
getTeams
Get Team listing- Parameters:
request- The request object- Returns:
- TeamEntityListing
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
getTeams
Get Team listing- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
patchTeam
Update team- Parameters:
teamId- Team ID (required)body- Team (required)- Returns:
- Team
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchTeamWithHttpInfo
Update team- Parameters:
teamId- Team ID (required)body- Team (required)- Returns:
- Team
- Throws:
IOException- if the request fails to be processed
-
patchTeam
Update team- Parameters:
request- The request object- Returns:
- Team
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
patchTeam
Update team- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postAnalyticsTeamsActivityQuery
public TeamActivityResponse postAnalyticsTeamsActivityQuery(TeamActivityQuery body, Integer pageSize, Integer pageNumber) throws IOException, ApiException Query for team activity observations- Parameters:
body- query (required)pageSize- The desired page size (optional)pageNumber- The desired page number (optional)- Returns:
- TeamActivityResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postAnalyticsTeamsActivityQueryWithHttpInfo
public ApiResponse<TeamActivityResponse> postAnalyticsTeamsActivityQueryWithHttpInfo(TeamActivityQuery body, Integer pageSize, Integer pageNumber) throws IOException Query for team activity observations- Parameters:
body- query (required)pageSize- The desired page size (optional)pageNumber- The desired page number (optional)- Returns:
- TeamActivityResponse
- Throws:
IOException- if the request fails to be processed
-
postAnalyticsTeamsActivityQuery
public TeamActivityResponse postAnalyticsTeamsActivityQuery(PostAnalyticsTeamsActivityQueryRequest request) throws IOException, ApiException Query for team activity observations- Parameters:
request- The request object- Returns:
- TeamActivityResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postAnalyticsTeamsActivityQuery
public ApiResponse<TeamActivityResponse> postAnalyticsTeamsActivityQuery(ApiRequest<TeamActivityQuery> request) throws IOException Query for team activity observations- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postTeamMembers
public TeamMemberAddListingResponse postTeamMembers(String teamId, TeamMembers body) throws IOException, ApiException Add team members- Parameters:
teamId- Team ID (required)body- TeamMembers (required)- Returns:
- TeamMemberAddListingResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postTeamMembersWithHttpInfo
public ApiResponse<TeamMemberAddListingResponse> postTeamMembersWithHttpInfo(String teamId, TeamMembers body) throws IOException Add team members- Parameters:
teamId- Team ID (required)body- TeamMembers (required)- Returns:
- TeamMemberAddListingResponse
- Throws:
IOException- if the request fails to be processed
-
postTeamMembers
public TeamMemberAddListingResponse postTeamMembers(PostTeamMembersRequest request) throws IOException, ApiException Add team members- Parameters:
request- The request object- Returns:
- TeamMemberAddListingResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postTeamMembers
public ApiResponse<TeamMemberAddListingResponse> postTeamMembers(ApiRequest<TeamMembers> request) throws IOException Add team members- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postTeams
Create a team- Parameters:
body- Team (required)- Returns:
- Team
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postTeamsWithHttpInfo
Create a team- Parameters:
body- Team (required)- Returns:
- Team
- Throws:
IOException- if the request fails to be processed
-
postTeams
Create a team- Parameters:
request- The request object- Returns:
- Team
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postTeams
Create a team- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-
postTeamsSearch
Search resources.- Parameters:
body- Search request options (required)- Returns:
- TeamsSearchResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postTeamsSearchWithHttpInfo
public ApiResponse<TeamsSearchResponse> postTeamsSearchWithHttpInfo(TeamSearchRequest body) throws IOException Search resources.- Parameters:
body- Search request options (required)- Returns:
- TeamsSearchResponse
- Throws:
IOException- if the request fails to be processed
-
postTeamsSearch
public TeamsSearchResponse postTeamsSearch(PostTeamsSearchRequest request) throws IOException, ApiException Search resources.- Parameters:
request- The request object- Returns:
- TeamsSearchResponse
- Throws:
ApiException- if the request fails on the serverIOException- if the request fails to be processed
-
postTeamsSearch
public ApiResponse<TeamsSearchResponse> postTeamsSearch(ApiRequest<TeamSearchRequest> request) throws IOException Search resources.- Parameters:
request- The request object- Returns:
- the response
- Throws:
IOException- if the request fails to be processed
-