updateUserWithHttpInfo method

Future<Response> updateUserWithHttpInfo(
  1. String username,
  2. UserRequestBody userRequestBody
)

Updates user

Updates an existing user

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateUserWithHttpInfo(
  String username,
  UserRequestBody userRequestBody,
) async {
  // ignore: prefer_const_declarations
  final path =
      r'/lbcoreapi/users/{username}'.replaceAll('{username}', username);

  // ignore: prefer_final_locals
  Object? postBody = userRequestBody;

  final queryParams = <QueryParam>[];
  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,
  );
}