deleteOrganizationMembershipWithHttpInfo method
Remove a member from an organization
Removes the given membership from the organization
Note: This method returns the HTTP Response
.
Parameters:
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,
);
}