Creates a new alert for the team.
HTTP
POST https://www.troposalerts.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 |
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"
}Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article