removeSidebarCategoryForTeamForUserWithHttpInfo method
Delete sidebar category
Deletes a single sidebar category for the user on the given team. Only custom categories can be deleted. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the list_team_channels
permission.
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> removeSidebarCategoryForTeamForUserWithHttpInfo(
String teamId,
String userId,
String categoryId,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/teams/{team_id}/channels/categories/{category_id}'
.replaceAll('{team_id}', teamId)
.replaceAll('{user_id}', userId)
.replaceAll('{category_id}', categoryId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}