updateSidebarCategoryOrderForTeamForUserWithHttpInfo method

Future<Response> updateSidebarCategoryOrderForTeamForUserWithHttpInfo(
  1. String teamId,
  2. String userId,
  3. List<String> requestBody
)

Update user's sidebar category order

Updates the order of the sidebar categories for a user on the given team. The provided array must include the IDs of all categories on the team. 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> updateSidebarCategoryOrderForTeamForUserWithHttpInfo(
  String teamId,
  String userId,
  List<String> requestBody,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/teams/{team_id}/channels/categories/order'
      .replaceAll('{team_id}', teamId)
      .replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody = requestBody;

  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,
  );
}