import { ExceptionList } from '../../objects/exception' ; export const createExceptionList = ( exceptionList , exceptionListId = 'exception_list_testing' ) => cy . request ( { method : 'POST' , url : 'api/exception_lists' , body : { list_id : exceptionListId != null ? exceptionListId : exceptionList . list_id , description : exceptionList . description , name : exceptionList . name , type : exceptionList . type , } , headers : { 'kbn-xsrf' : 'cypress-creds' } , failOnStatusCode : false , } ) ;