public SuccessResponse deleteAlert ( DeleteAlertRequest params ) throws ApiException { String identifier = params . getIdentifier ( ) ; String identifierType = params . getIdentifierType ( ) . getValue ( ) ; String source = params . getSource ( ) ; String user = params . getUser ( ) ; Object localVarPostBody = null ; // verify the required parameter 'identifier' is set if ( identifier == null ) { throw new ApiException ( 400 , "Missing the required parameter 'identifier' when calling deleteAlert" ) ; } // create path and map variables String localVarPath = "/v2/alerts/{identifier}" . replaceAll ( "\\{" + "identifier" + "\\}" , apiClient . escapeString ( identifier . toString ( ) ) ) ; // query params List < Pair > localVarQueryParams = new ArrayList < Pair > ( ) ; Map < String , String > localVarHeaderParams = new HashMap < String , String > ( ) ; Map < String , Object > localVarFormParams = new HashMap < String , Object > ( ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "identifierType" , identifierType ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "source" , source ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "user" , user ) ) ; final String [ ] localVarAccepts = { "application/json" } ; final String localVarAccept = apiClient . selectHeaderAccept ( localVarAccepts ) ; final String [ ] localVarContentTypes = { } ; final String localVarContentType = apiClient . selectHeaderContentType ( localVarContentTypes ) ; String [ ] localVarAuthNames = new String [ ] { "GenieKey" } ; GenericType < SuccessResponse > localVarReturnType = new GenericType < SuccessResponse > ( ) { } ; return apiClient . invokeAPI ( localVarPath , "DELETE" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; }
Delete Alert Deletes an alert using alert id tiny id or alias