updateAccountWithHttpInfo method

Future<Response> updateAccountWithHttpInfo(
  1. String accountId,
  2. UpdateAccountRequest updateAccountRequest
)

Update account metadata (label, etc.).

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateAccountWithHttpInfo(String accountId, UpdateAccountRequest updateAccountRequest,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/accounts/{accountId}'
    .replaceAll('{accountId}', accountId);

  // ignore: prefer_final_locals
  Object? postBody = updateAccountRequest;

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

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


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