apiV2CardPartialUpdateWithHttpInfo method

Future<Response> apiV2CardPartialUpdateWithHttpInfo(
  1. int id, {
  2. Map<String, Object>? requestBody,
})

Check the properties in response, excepts the id property

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV2CardPartialUpdateWithHttpInfo(int id, { Map<String, Object>? requestBody, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/card/{id}/'
    .replaceAll('{id}', id.toString());

  // 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,
    'PATCH',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}