apiV2UsersProfileUserProfileUpdateWithHttpInfo method

Future<Response> apiV2UsersProfileUserProfileUpdateWithHttpInfo({
  1. Map<String, Object>? requestBody,
})

Allowed parameters 'user_timezone', 'language', 'pay_via_oktopi'

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV2UsersProfileUserProfileUpdateWithHttpInfo({ Map<String, Object>? requestBody, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/users/profile/user_profile/';

  // ignore: prefer_final_locals
  Object? postBody = requestBody;

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

  const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];


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