updateSidebarCategoriesForTeamForUserWithHttpInfo method
Future<Response>
updateSidebarCategoriesForTeamForUserWithHttpInfo(
- String teamId,
- String userId,
- List<
MmSidebarCategory> mmSidebarCategory
Update user's sidebar categories
Update any number of sidebar categories for the user on the given team. This can be used to reorder the channels in these categories. Minimum server version: 5.26 ##### Permissions Must be authenticated and have the list_team_channels
permission.
Note: This method returns the HTTP Response
.
Parameters:
-
String teamId (required): Team GUID
-
String userId (required): User GUID
-
List<MmSidebarCategory> mmSidebarCategory (required):
Implementation
Future<Response> updateSidebarCategoriesForTeamForUserWithHttpInfo(
String teamId,
String userId,
List<MmSidebarCategory> mmSidebarCategory,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/teams/{team_id}/channels/categories'
.replaceAll('{team_id}', teamId)
.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = mmSidebarCategory;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}