deleteOrganizationRoleWithHttpInfo method

Future<Response> deleteOrganizationRoleWithHttpInfo(
  1. String organizationRoleId
)

Delete an organization role

Deletes the organization role. The role cannot be deleted if it is currently used as the default creator role, domain default role, assigned to any members, or exists in any invitations.

Note: This method returns the HTTP Response.

Parameters:

  • String organizationRoleId (required): The ID of the organization role to delete

Implementation

Future<http.Response> deleteOrganizationRoleWithHttpInfo(
  String organizationRoleId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/organization_roles/{organization_role_id}'
      .replaceAll('{organization_role_id}', organizationRoleId);

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