Skip to content

Commit

Permalink
Update notification.yml (#830)
Browse files Browse the repository at this point in the history
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"}
```
  • Loading branch information
danaelhe authored Oct 11, 2023
1 parent bc1bc43 commit 9d239ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specification/resources/uptime/models/notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ required:
- email
properties:
email:
description: "An email to notify on an alert trigger."
description: "An email to notify on an alert trigger. The Email has to be one that is verified on that DigitalOcean account."
example:
- "bob@example.com"
type: array
Expand Down

0 comments on commit 9d239ea

Please sign in to comment.