When I make a post request from thunder client to https://api.opsgenie.com/v2/alerts
Body :
{
"message": "This is the notification message",
"teams": ["abhilash8642"],
"priority": "P1",
"source": "Your Application",
"description": "Additional details about the alert",
"details": {
"key1": "value1",
"key2": "value2"
},
"tags": ["tag1", "tag2"],
"note": "Optional note for the alert"
}
Response :
{
"message": "'teams#null' is invalid",
"took": 0.001,
"requestId": "f2979ef8-a641-4f3e-b5c0-c64befc5b9c1"
}
But the team i specified abhilash8642 is present.
Can someone help?
Instead of 'teams' you will want to use 'responders', with teams as a child. Here is an example:
"responders":[ {"name":"abhilash8642", "type":"team"} ],
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.