Skip to content

brk: Changed managed contacts phone to an envelope #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions src/data/endpoints/managed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,35 @@ endpoints:
description: The contact's full name.
type: String
limit: 1-64 characters
value: "John Q. Public"
email:
description: The email address for the contact.
type: String
phone_primary:
description: A primary phone number for the contact.
type: String
phone_secondary:
description: A secondary phone number for the contact.
type: String
value: "[email protected]"
phone:
primary:
description: A primary phone number for the contact.
type: String
value: 215-555-3000
secondary:
description: A secondary phone number for the contact.
type: String
value: 215-555-3001
group:
description: Contacts can be associated with a monitored service by the group they belong to.
type: String
value: Support
examples:
curl: |
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"name": "John Q. Public",
"email": "[email protected]",
"phone_primary": "215-555-3000",
"phone_secondary": "215-555-3001",
"phone": {
"primary": "215-555-3000",
"secondary": "215-555-3001",
},
"group": "Support",
}' \
https://$api_root/$version/managed/contacts
Expand Down Expand Up @@ -78,6 +86,7 @@ endpoints:
"phone": {
"primary": "215-555-4000",
"secondary": "215-555-4001",
},
"group": "Developers"
}' \
https://$api_root/$version/managed/contact/$contact_id
Expand Down