apiV1OrganizationsIdPatchWithHttpInfo method

Future<Response> apiV1OrganizationsIdPatchWithHttpInfo(
  1. String id, {
  2. UpdateOrganization? updateOrganization,
})

Update organization

Update organization details (owner or admin only)

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV1OrganizationsIdPatchWithHttpInfo(String id, { UpdateOrganization? updateOrganization, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/organizations/{id}'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = updateOrganization;

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