updateUserWithHttpInfo method

Future<Response> updateUserWithHttpInfo(
  1. String userId, {
  2. String? lang,
  3. required UpdateUser updateUser,
})

Update users

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateUserWithHttpInfo(
  String userId, {
  String? lang,
  required UpdateUser updateUser,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{userId}'.replaceAll('{userId}', userId);

  // ignore: prefer_final_locals
  Object? postBody = updateUser;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (lang != null) {
    queryParams.addAll(_queryParams('', 'lang', lang));
  }

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'PATCH',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}