deleteOrganizationMembershipWithHttpInfo method

Future<Response> deleteOrganizationMembershipWithHttpInfo(
  1. String organizationId,
  2. String userId
)

Remove a member from an organization

Removes the given membership from the organization

Note: This method returns the HTTP Response.

Parameters:

  • String organizationId (required): The ID of the organization the membership belongs to

  • String userId (required): The ID of the user that this membership belongs to

Implementation

Future<http.Response> deleteOrganizationMembershipWithHttpInfo(
  String organizationId,
  String userId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/organizations/{organization_id}/memberships/{user_id}'
      .replaceAll('{organization_id}', organizationId)
      .replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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