Creates a new alert for the team.
HTTP
POST https://www.squidalerts.com/api/textalert/{company-slug}/{team-slug}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| company-slug | path | True | string | The URL friendly name of the company receiving the alert. For example, "Squid Alerts" would be squid-alerts. |
| team-slug | path | True | string | The URL friendly name of the team receiving the alert. For example, "Production Support Team" would be production-support-team. |
Request Body
| Required | Type | Description |
|---|---|---|
| True | string | The plain text contents of the alert. For example, if you're using New Relic, the request body would look something like this:New Relic Alert Incident open: CPU > 50% for 5 minutes Policy: http://alerts.newrelic.com/accounts/1234/policies/5678 Chart URL: http://gorgon.nr-assets.net/image/12345678-abcd-efgh-ijkl-1234567890 For more details, see: http://alerts.newrelic.com/accounts/1234/incidents/3456 |
Response
| Status | Type | Description |
|---|---|---|
| 200 | OK | The alert was successfully created |
Response Contents
| Name | Type | Description |
|---|---|---|
| id | Guid | Identifier of the new alert |
| teamId | Guid | Identifier of the team the alert was created under |
| status | string | The status of the new alert (should be New) |
| createdDate | DateTime | The date the alert was created in UTC format |
Response JSON
{
"id": "6c7bbe3c-eee3-4e63-b714-a7d2ee72dad9",
"teamId": "d1bc1189-8341-48ec-bd84-f0e33d85c81d",
"status": "New",
"createdDate": "2020-03-31T20:18:50.5021772Z"
}