updateUserPasswordWithHttpInfo method
Future<Response>
updateUserPasswordWithHttpInfo(
- String account,
- String user,
- UpdateUserPasswordRequest updateUserPasswordRequest
Update password
Action to update the user's password. A user's password can only be updated when authenticated as the given user. To update the user's password as an admin, use the update user endpoint.
Note: This method returns the HTTP Response
.
Parameters:
-
String account (required): The identifier (UUID) or slug of your Keygen account.
-
String user (required): The identifier (UUID) or email of the user to be retrieved.
-
UpdateUserPasswordRequest updateUserPasswordRequest (required):
Implementation
Future<Response> updateUserPasswordWithHttpInfo(String account, String user, UpdateUserPasswordRequest updateUserPasswordRequest,) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/users/{user}/actions/update-password'
.replaceAll('{account}', account)
.replaceAll('{user}', user);
// ignore: prefer_final_locals
Object? postBody = updateUserPasswordRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/vnd.api+json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}