updateUserPasswordWithHttpInfo method

Future<Response> updateUserPasswordWithHttpInfo(
  1. String userId,
  2. MmUpdateUserPasswordRequest mmUpdateUserPasswordRequest
)

Update a user's password

Update a user's password. New password must meet password policy set by server configuration. Current password is required if you're updating your own password. ##### Permissions Must be logged in as the user the password is being changed for or have manage_system permission.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateUserPasswordWithHttpInfo(
  String userId,
  MmUpdateUserPasswordRequest mmUpdateUserPasswordRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/password'.replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody = mmUpdateUserPasswordRequest;

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