updateUserWithHttpInfo method
Future<Response>
updateUserWithHttpInfo(
- String account,
- String user, {
- UpdateUserRequest? updateUserRequest,
Update a user
Updates the specified user resource by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
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 updated.
-
UpdateUserRequest updateUserRequest:
Implementation
Future<Response> updateUserWithHttpInfo(String account, String user, { UpdateUserRequest? updateUserRequest, }) async {
// ignore: prefer_const_declarations
final path = r'/accounts/{account}/users/{user}'
.replaceAll('{account}', account)
.replaceAll('{user}', user);
// ignore: prefer_final_locals
Object? postBody = updateUserRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/vnd.api+json'];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}