Skip to content

Commit 9d239ea

Browse files
authored
Update notification.yml (#830)
Trying to use an email that is not associated with the account will result in an error: ``` curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \ -d '{"name":"Landing page degraded performance","type":"latency","threshold":300,"comparison":"greater_than","notifications":{"email":["bob@gmail.com"],"slack":[{"channel":"Production Alerts","url":"https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ"}]},"period":"2m"}' \ "https://api.digitalocean.com/v2/uptime/checks/dd70-40ed-b307-/alerts" {"id":"bad_request","message":"invalid value for field 'notifications.email[0]': invalid email 'bob@gmail.com'","request_id":"dfd99e62bfdb"} ```
1 parent bc1bc43 commit 9d239ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specification/resources/uptime/models/notification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ required:
55
- email
66
properties:
77
email:
8-
description: "An email to notify on an alert trigger."
8+
description: "An email to notify on an alert trigger. The Email has to be one that is verified on that DigitalOcean account."
99
example:
1010
- "bob@example.com"
1111
type: array

0 commit comments

Comments
 (0)