projectsPartialUpdateWithHttpInfo method

Future<Response> projectsPartialUpdateWithHttpInfo(
  1. String id, {
  2. PatchedProjectUpdate? patchedProjectUpdate,
})

Change as subset of project details.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> projectsPartialUpdateWithHttpInfo(
  String id, {
  PatchedProjectUpdate? patchedProjectUpdate,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/api/projects/{id}/'.replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = patchedProjectUpdate;

  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,
  );
}