hal  
                (hal)
               
                 
              
                  
                    June 9, 2024,  7:10am
                   
                   
              1 
               
             
            
              is there a way to add alerts to a case using api?
I asked chatgpt and it gave me this:
POST /api/cases/{case_id}/alerts 
{ 
"alerts": [ 
{ 
"id": "alert_id_1", 
"index": "index_name_1" 
}, 
{ 
"id": "alert_id_2", 
"index": "index_name_2" 
} 
] 
}
did not found it in the official documentation and also did not work
             
            
               
               
              1 Like 
            
            
           
          
            
              
                georgii  
                (Georgii Gorbachev)
               
              
                  
                    June 10, 2024,  9:38am
                   
                   
              2 
               
             
            
              Welcome to the community @hal  
An alert can be attached to a case via the Add comment to case API .
             
            
               
               
               
            
            
           
          
            
              
                hal  
                (hal)
               
              
                  
                    June 17, 2024,  6:45am
                   
                   
              3 
               
             
            
              Thanks Georgii, the comment seems to add one alert to a case, how can I add multiple alerts to a case ?
             
            
               
               
               
            
            
           
          
            
              
                system  
                (system)
                  Closed 
               
              
                  
                    July 15, 2024,  6:45am
                   
                   
              4 
               
             
            
              This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.