| Requires any of the roles: | SystemAdministrator, Manager, Customer |
| POST | /alerts |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AccountId | body | string | No | The account ID to associate this alert with |
| Name | body | string | No | The name of the alert |
| Trigger | body | AlertTriggers | No | The trigger alert |
| WindowHours | body | double | No | The number of hours for the window over which the alert will trigger |
| Threshold | body | double | No | The value at which the alert will trigger |
| NotificationEmailAddresses | body | string | No | The email addresses (one per line) to notify |
| CallSpend |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AccountId | form | string | No | The ID of the account associated with this alert |
| Name | form | string | No | The name of the alert |
| Trigger | form | AlertTriggers | No | The trigger alert |
| WindowHours | form | double | No | The number of hours for the window over which the alert will trigger |
| Threshold | form | double | No | The value at which the alert will trigger |
| NotificationEmailAddresses | form | string | No | The email addresses (one per line) to notify |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | The ID of the object |
| DateCreated | form | string | No | The date the object was created |
| DateLastModified | form | string | No | The date the object was last modified |
| CreatedBy | form | string | No | The user that created this object |
| LastModifiedBy | form | string | No | The user that last modified this object |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /alerts HTTP/1.1
Host: evovoice.io
Accept: application/json
Content-Type: application/json
Content-Length: length
{"accountId":"String","name":"String","trigger":"CallSpend","windowHours":0,"threshold":0,"notificationEmailAddresses":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"accountId":"String","name":"String","trigger":"CallSpend","windowHours":0,"threshold":0,"notificationEmailAddresses":"String","id":"String","dateCreated":"String","dateLastModified":"String","createdBy":"String","lastModifiedBy":"String"}