| Requires any of the roles: | SystemAdministrator, Manager, Customer |
| PATCH | /alerts/{alertId} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AlertId | path | string | No | The ID of the alert you want to update |
| Name | query | string | No | The name for the alert |
| Trigger | query | AlertTriggers? | No | The trigger alert |
| WindowHours | query | double? | No | The number of hours for the window over which the alert will trigger |
| Threshold | query | double? | No | The value at which the alert will trigger |
| NotificationEmailAddresses | query | 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PATCH /alerts/{alertId} HTTP/1.1
Host: evovoice.io
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
alertId: String,
name: String,
trigger: CallSpend,
windowHours: 0,
threshold: 0,
notificationEmailAddresses: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}