Create Alerts using ION API
Hello Team,
I’m attempting to trigger an alert using the ION API. However, when I send a request through Postman, I receive the following error:
Could you suggest how I can debug this further to identify the root cause? Any guidance or recommendations would be greatly appreciated.
Thank you
Vinayak
Best Answer
-
"SubLevel" should not be null. They are used to define a Structures mapping.
This should work:
{
"message": "TESTING Alert Through Postman",
"alertDateTime": "2024-12-15T12:03:19Z",
"dueDate": "2024-12-22T12:03:19Z",
"details": {
"name": "VSTEST",
"properties": [
{
"name": "email",
"value": "vshetty@xappsdev.com",
"dataType": "STRING"
},
{
"name": "user",
"value": "Vinayak Shetty",
"dataType": "STRING"
}
]
},
"distribution": [
{
"identifier": "vshetty@xappsdev.com",
"type": "USER",
"sendMail": true
}
]
}1
Answers
-
Hi,
Can you attach/paste the whole body request you are sending?0 -
Hello Daniel,
Please find the request payload below
{ "message": "TESTING Alert Through Postman", "alertDateTime": "2024-12-15T12:03:19Z", "dueDate": "2024-12-22T12:03:19Z", "details": { "name": "VSTEST", "properties": [ { "name": "email", "value": "vshetty@xappsdev.com", "dataType": "STRING" }, { "name": "user", "value": "Vinayak Shetty", "dataType": "STRING" } ], "subLevels": [ null ] }, "distribution": [ { "identifier": "vshetty@xappsdev.com", "type": "USER", "sendMail": true } ]}
0 -
Thank you, Daniel. It worked
0