Alert creation via API POST request
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-29-2024 02:08 AM
Hi Community!
I trying to investigate how to create an Alert via API and face with issue.
When I do API call, like
curl "https://dev286647.service-now.com/api/now/table/em_alert" \ --request POST \ --header "Accept:application/json" \ --header "Content-Type:application/json" \ --data "{\"source\":\"Nagios\",\"node\":\"Server123\",\"type\":\"CPU\",\"severity\":\"1\",\"description\":\"CPU usage has exceeded 90% on Server123\",\"classification\":\"3\",\"additional_info\":\"cpu_load\",\"resource\":\"Server123\"}" \ --user 'admin':'admin'
getting almost empty Alert in the UI
Alert created via API explorer with full admin rights. I didn't create any restriction ACL, etc.. Use instance out of the box.
I only face this issue when creating an alert. Incidents and Security Incidents are created correctly with all needed fields.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-17-2025 05:03 AM
Hi @YevheniiK - did you manage to find a solution for this? We've run into the same problem